my question is similar to this question how to write Hibernate Criteria to take nested objects by Projection List?
but with tiny differnce. In fact my classes is similar to
class Person {
private Long id;
private String name;
private List<Car> cars; // differnce
// getters and setters
}
how transformer to list of objects?