Question - What are the different states of a persistent entity?
Answer -
It may exist in one of the following 3 states:
- Transient: This is not associated with the Session and has no representation in the database.
- Persistent: You can make a transient instance persistent by associating it with a Session.
- Detached: If you close the Hibernate Session, the persistent instance will become a detached instance.