Editorial / Best Answer
promisingram
Use update() if you are sure that the session does not contain an already persistent instance with the same identifier, and merge() if you want to merge your modifications at any time without consideration of the state of the session. In other words, update() is usually the first method you would call in a fresh session, ensuring that reattachment of your detached instances is the first operation that is executed.
What is the difference between and merge and update
Profile Answers by rajneeshg Questions by rajneeshg
Questions by rajneeshg answers by rajneeshg
Editorial / Best Answer
promisingramProfile Answers by promisingram Questions by promisingram
Use update() if you are sure that the session does not contain an already persistent instance with the same identifier, and merge() if you want to merge your modifications at any time without consideration of the state of the session. In other words, update() is usually the first method you would call in a fresh session, ensuring that reattachment of your detached instances is the first operation that is executed.
Related Answered Questions
Related Open Questions