
Explain the types of Hibernate instance states.

Hi Samar,
Hibernate has three types of instance states:
Transient -The instance is not associated with any persistence context.
Persistent -The instance is associated with a persistence context.
Detached -The instance was associated with a persistence context which has been closed ? currently not associated.
Thanks.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.