• +91 9723535972
  • info@interviewmaterial.com

Hibernate Interview Questions and Answers

Question - What does session.lock() method in hibernate do?

Answer -

session.lock() method is used to reattach a detached object to the session. session.lock() method does not check for any data synchronization between the database and the object in the persistence context and hence this reattachment might lead to loss of data synchronization.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners