Tag: projections in hibernate
Hibernate Projections Introduction
So far in criteria, we are able to load complete object right….! let us see how to load the partial objects while working with criteria. The projections concept is introduced in hibernate 3.0 and mainly we can do the…
Hibernate Projections, Example On Hibernate Projections
Now we will see how to use this criteria to select partial objects from the database with the help of projections, (Remember, We cant select partial objects in criteria with out projections support) files required… Product.java(POJO class) Product.hbm.xml hibernate.cfg.xml…
Example On Hibernate Criteria With Multiple Projections
If we want to load partial object, with multiple columns using criteria then we need to create the ProjectionList with the multiple properties and then we need to add that ProjectionList to the criteria files required… Product.java(POJO class) Product.hbm.xml…