Hibernate / Hibernate interview questions II
What is the advantage of using session.lock() in hibernate?
session.lock() method is used to reattach an object which has been detached earlier.
Using session.lock() does not check for any data synchronization in database while reattaching the object and hence may lead to lack of synchronization in data.
More Related questions...