adspace


What is difference between update and merge in hibernate?

Answer Posted / Saurab Kumar Verma

Update in Hibernate updates an existing entity instance based on its primary key, while Merge checks if an entity with the same primary key already exists. If it does, it merges the changes of the passed-in transient entity into the persistent entity.

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