DetachedCriteria criteria = DetachedCriteria.forClass(Prorumble.class)
.add(Property.forName("collaborator").eq(dto.getCollaborator()))
.add(Property.forName("day").ge(begin.getTime()))
.add(Property.forName("day").le(end.getTime()));
for(Object o: dao.getList(criteria, null, null)) {
Prorumble pro = (Prorumble) o;
Day day = new Day(pro.getDay().getTime());
prorumbles.add(day);
}
}
return prorumbles;
}