States of an object in Hibernate
Hibernate object statesThere are three statesTransient If the object just created, no primary key and not associate with a session, then the object is in the transient statePersistent If a session is open, the object is in the persistent stateDetached If a session is closed, the object...