What is the use of version property in hibernate?



What is the use of version property in hibernate?..

Answer / Vivek Kumar Basumata

The version property in Hibernate is used to detect optimistic locking exceptions. It keeps track of the number of times an object has been updated since it was last loaded from the database. If another user tries to update the same object with a different version, an OptimisticLockException is thrown.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is fetchtype lazy?

1 Answers  


What is hibernate dialect for oracle?

1 Answers  


Is hibernate a framework?

1 Answers  


Is hibernate open source?

1 Answers  


Can we have multiple sessionfactory in hibernate?

1 Answers  


What is hibernate in j2ee?

1 Answers  


Difference between save() and saveorupdate() method of hibernate?

1 Answers  


What is hibernate mapping?

1 Answers  


What does the session object hold?

1 Answers  


How many layers are there in hibernate architecture?

1 Answers  


Why do we use hibernate framework?

1 Answers  


What are the benefits of named sql query?

1 Answers  


Categories