adspace


When do you use merge() and update() in hibernate?

Answer Posted / Brahmanand Thakur

You use the 'merge' method when you want to merge the changes made to a detached object into the persistent context, or when you want to obtain a managed instance associated with the session. The 'update' method is used for updating an existing record in the database without loading it into the session.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is latest hibernate version?

493