What is automatic dirty checking in hibernate?



What is automatic dirty checking in hibernate?..

Answer / Zainul Abdin

Automatic dirty checking in Hibernate is a mechanism that helps to identify the changed, added, or deleted entities since the session was opened. It does this by comparing the state of an entity object at the time of its association with the Session (when it's loaded or saved) with its current state. If there are any differences, the entity is considered 'dirty'. This feature helps Hibernate to automatically generate SQL updates, inserts, and deletes when needed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is transient instance state in hibernate?

1 Answers  


What is hibernate flush?

1 Answers  


Explain some of the elements of hbm.xml?

1 Answers  


How to integrate hibernate and spring?

1 Answers  


What is callback interface in hibernate?

1 Answers  


Is it possible to perform collection mapping with one-to-one and many-to-one?

1 Answers  


What is hibernate and why it is used?

1 Answers  


How many stages are there in hibernate inheritance?

1 Answers  


How can we use new custom interfaces to enhance functionality of built-in interfaces of hibernate?

1 Answers  


What is hql (hibernate query language)?

1 Answers  


What is ehcache in hibernate?

1 Answers  


Explain the types of hibernate instance states.

1 Answers  


Categories