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 |
What is fetchtype lazy?
What is hibernate dialect for oracle?
Is hibernate a framework?
Is hibernate open source?
Can we have multiple sessionfactory in hibernate?
What is hibernate in j2ee?
Difference between save() and saveorupdate() method of hibernate?
What is hibernate mapping?
What does the session object hold?
How many layers are there in hibernate architecture?
Why do we use hibernate framework?
What are the benefits of named sql query?