InterviewSolution
Saved Bookmarks
| 1. |
When is merge() method of the hibernate session useful? |
|
Answer» Merge() method can be used for updating EXISTING values. The specialty of this method is, once the existing values are updated, the method creates a copy from the entity object and returns it. This RESULT object goes into the persistent context and is then tracked for any changes. The object that was INITIALLY used is not tracked. |
|