Multiple choice technology web technology

What are the different states of persistent classes?

  1. Transient, persistent, destroyed

  2. Transient, stored, detached

  3. Transient, persistent, detached

  4. open, close, detached

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Hibernate defines three states for persistent classes: transient (not associated with any session, no database row), persistent (associated with a session and has a database identity), and detached (formerly persistent but no longer associated with a session, still has database identity).