Hibernate Team |
|
Joined: Mon Aug 25, 2003 9:11 pm Posts: 4592 Location: Switzerland
|
LockMode.NONE: Don't go to the database unless the object is not in either cache.
LockMode.READ: Bypass both levels of the cache and perform a version check, to verify that the object is the same version that currently exists in the database.
The others are pessimistic and exclusive locks for the duration of the transaction on that object.
_________________ JAVA PERSISTENCE WITH HIBERNATE http://jpwh.org Get the book, training, and consulting for your Hibernate team.
|
|