Hi,
Here's the difference. between. update() and merge() in hibernate
Update():- if you are sure that the session does not contains an already persistent instance with the same identifier then use update to save the data in hibernate
Merge():-if you want to save your modificatiions at any time with out knowing abot the state of an session then use merge() in hibernate.
Cheers,
Happy Coding :)
No comments:
Post a Comment