Hibernate Core concepts overview

We need to understand the below concepts in Hibernate before using them in coding Configuration SessionFactory Session Let’s see them in detail Configuration Hibernate should have the information to map the java classes with the database tables. This information is ideally kept in the mapping XML file. Hibernate also need to have the database related […]

Share this article on

Object Lifecycle and states in Hibernate

Looking at the state of an object in Hibernate, we will get to know whether object is saved into Database or not. The 3 states of an object in Hibernate Transient Persistent Detached Let’s see these states in detail with example Transient state A transient object is one that Hibernate has no idea on it. […]

Share this article on
< Previous Next >