Map hibernate projections result to java POJO model
I've been using spring and hibernate for this past few weeks and I've always been learning something new there. Right now I've got a problem that I want to solve with Projections in Hibernate. Suppose there is a model Person and that model has many Car . The following are how the class definitions roughly gonna look like: public class Person implements java.io.Serializable { private Integer id; private String name; private List<Car> cars; private Integer minYear; // Transient private Integer maxYear; // Transient } public class Car implements java.io.Serializable { private Integer id; private