Thursday, June 11, 2009

Hibernate Automatic Dirty Checking

Hibernate persistent objects are keep synchronize with database while the session is remain open. But the data will not commit to the database unless we call session.flush() or committing transaction.

Hibernate tracks all persistent objects and it call update statements only for updated objects. This process of monitoring persistence objects and updating only modified object is called automatic dirty checking.

This process is leads to improve performance of updating database.

1 comment:

Anonymous said...

session.flush() will not commit data or values to database , it makes only visible to database , for commit you have to call transaction.commit().

Post a Comment