Constructor based HQL – Select new object in Hibernate

The Constructor based HQL shows you how to create query select new object in hibernate for improving performance. Normally, almost of developer don’t bother retrieving the whole entity with all its properties. While they don’t really need all of them in a particular case. For example, we have a single entity with 25 properties, and … Read moreConstructor based HQL – Select new object in Hibernate

Difference between save and persist method in Hibernate

What is difference between save and persist method in Hibernate are most important in any Hibernate interview. Hibernate Session is the interface between java application and hibernate framework. It provides some methods to move an object from new or transient state to persistent state. For example, save(), saveOrUpdate() and persist() methods are used to store … Read moreDifference between save and persist method in Hibernate

Please share it if you found this useful
Hide Buttons