Hibernate 4 Tutorials with Examples
Hibernate 4 @SortComparator and @SortNatural Example for SortedSet Mapping
On this page we will provide hibernate 4 @SortComparator and @SortNatural example for SortedSet mapping. These annotation has been introduced in hibernate 4.3 deprecating @Sort annotation.
Hibernate 4 SharedSessionBuilder and Session.sessionWithOptions() Example
In this page we will learn Hibernate 4 SharedSessionBuilder and Session.sessionWithOptions(). SharedSessionBuilder is instantiated using Session.sessionWithOptions().
Hibernate 4 ReturningWork and Session.doReturningWork Example for JDBC
In this page we will learn Hibernate 4 ReturningWork and Session.doReturningWork example for JDBC. From hibernate session java connection object will be created and using JDBC interact to database and return the result.
Hibernate 4 NaturalIdLoadAccess and Session.byNaturalId() Example
In this page, we will learn Hibernate 4 NaturalIdLoadAccess and Session.byNaturalId() example. Hibernate 4 has introduced NaturalIdLoadAccess class that loads entity by using natural identifier.
Hibernate 4 IdentifierLoadAccess and Session.byId() Example
In this page, we will learn Hibernate 4 IdentifierLoadAccess and Session.byId() example. Hibernate 4 has introduced IdentifierLoadAccess class that loads entity by using primary identifier.
Hibernate 4 SessionEventListener and Session.addEventListeners() Example
In this page we will learn Hibernate 4 SessionEventListener and Session.addEventListeners(). There are many events in the life cycle of a Hibernate Session that can be listened.
Hibernate 4 Criteria Query Tutorials with Examples using JPA 2
In this page we will learn Hibernate 4 Criteria Query tutorials with examples using JPA 2. Hibernate suggest to use javax.persistence.criteria.CriteriaQuery instead of org.hibernate.Criteria.
Hibernate 4 Annotation Example with Gradle
In this page we will learn Hibernate 4 example using annotation. In hibernate creating SessionFactory is changed. StandardServiceRegistryBuilder is used to create SessionFactory.