Saved Bookmarks
| 1. |
What Is The Difference Between Merge And Update? |
|
Answer» update () : When the session does not contain an persistent INSTANCE with the same identifier, and if it is sure use update for the DATA PERSISTENCE in hibernate. merge (): Irrespective of the state of a session, if there is a need to save the MODIFICATIONS at any given time, use merge(). update () : When the session does not contain an persistent instance with the same identifier, and if it is sure use update for the data persistence in hibernate. merge (): Irrespective of the state of a session, if there is a need to save the modifications at any given time, use merge(). |
|