What is the difference between and merge and update
Answered by: promisingram
View all answers by promisingram
Member Since Oct-2008 |
Answered On : Oct 19th, 2008
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.
suppose you have detached object (means after closing session persistence object becomes detached object) and you have done some changes in this object with help of setter method now you created new ...
In Hibernate session can maintain only one object in persistent state with same id number. while converting a detached object into persistent,if already that session has a persistent object with the s...
Give me good reasons why should I choose you over others.
Tell me three things about you, which are not found in your resume
Aptitude Test Preparation Tips
Have you gone above and beyond your job description?
What do you do when someone criticizes you?
What will you do when you are not able to get your message across to your audience?
Tell me about a skill you recently acquired or improved.
What do you do when things do not go as planned? Cite an example.
How do you handle pressure and stress?
How do you approach a problem?
Ask Interview Question?
Have Career Question?
Ask Only Career questions.