stanowiskoService.findByParams(listProjections, listCriterions);
}
@Test
public void findByParamsProjectionsCriteriaOrder() throws Exception{
ProjectionList listProjections = Projections.projectionList();
listProjections.add(Projections.property(Stanowisko.PROPERTY_ID));
listProjections.add(Projections.property(Stanowisko.PROPERTY_OBJECT_PPRACOWNIKS+"."+Pracownik.PROPERTY_IMIE));
listProjections.add(Projections.property(Stanowisko.PROPERTY_OBJECT_PPRACOWNIKS+"."+Pracownik.PROPERTY_OBJECT_DZIALS+"."+Dzial.PROPERTY_NAZWA_DZIALU));
List<Criterion> listCriterions = new ArrayList<Criterion>();
listCriterions.add(Restrictions.isNotNull(Stanowisko.PROPERTY_ID));
listCriterions.add(Restrictions.isNotNull(Stanowisko.PROPERTY_OBJECT_PPRACOWNIKS+"."+Pracownik.PROPERTY_ID));
listCriterions.add(Restrictions.isNotNull(Stanowisko.PROPERTY_OBJECT_PPRACOWNIKS+"."+Pracownik.PROPERTY_OBJECT_DZIALS+"."+Dzial.PROPERTY_ID));