Persistent objects exist in the database, and Hibernate manages the persistence for persistent objects.
If we perform the Operations like save() , update(), saveOrUpdate().. etc. over the POJO object which is available in Transient State then POJO object will come to Persistence State.
In Persistence State, Hibernate Software is aware about POJO Object and database table record and its synchronization.
In Persistence State, if we perform modifications on POJO object then that modifications are reflected to Database table record.
// Persistence state start Transaction tx = session.beginTransaction(); session.save(emp); System.out.println("Employee Record inserted Succesfully"); tx.commit(); // Persistence state end