0 votes
in Hibernate by

What does Session.lock() method in hibernate do?

1 Answer

0 votes
by

The SessionSession.lock() method is used to acquire a lock on an object in the current Session. This is useful for preventing concurrent updates to the same thing. 

...