Hibernate Persistence/Entity object life cycle

Persistence Object has three life cycle states 1. Transient state 2. Persistent state 3. Detached state Transient state: Object is neither associated with Session nor present in Database. Persistent state: Object is associated with Session and also present in Database. Detached state: Object is not associated with Session, but present in Database. Transient state Example: EMPLOYEE table Application […]