Persistent
object is nothing but an instance of POJO class that we create to represent
rows in the table in the database.
According
to hibernate-doc an instance of POJO class representing table in database goes
through 3 states.
Transient
Persistent
Detached
When
a POJO instance is in session scope, it is said to be persistent i.e hibernate
detects any changes made to that object and synchronizes it with database when
we close or flush the session.
No comments:
Post a Comment