1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)
 

Recent Questions

!!! Hibernate Frequently Asked Questions !!!

Difference between session.saveOrUpdate() and session.merge()?

!!!Answer!!!- From Technical Expert

<b>saveOrUpdate() </b>does the following:

? if the object is already persistent in this session, do nothing

? if another object associated with the session has the same identifier, throw an exception

? if the object has no identifier property, save() it

? if the object's identifier has the value assigned to a newly instantiated object, save() it

? if the object is versioned (by a <version> or <timestamp>), and the version property value is the same

value assigned to a newly instantiated object, save() it

? otherwise update() the object



<b>merge() </b>is very different:

? if there is a persistent instance with the same identifier currently associated with the session, copy the state

of the given object onto the persistent instance

? if there is no persistent instance currently associated with the session, try to load it from the database, or

create a new persistent instance

? the persistent instance is returned

? the given instance does not become associated with the session, it remains detached

Answered By : tripura Replied Date : Dec 19 2011
Answer : i want difference between merge and save


Answered By : fffff Replied Date : Jul 19 2011
Answer : fffff


Answered By : null Replied Date : Dec 16 2013
Answer :


Answered By : null Replied Date : Dec 12 2013
Answer :


Answered By : null Replied Date : Nov 10 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Oct 18 2013
Answer :


Answered By : null Replied Date : Oct 12 2013
Answer :


Answered By : null Replied Date : Feb 6 2014
Answer :


Answered By : null Replied Date : Feb 13 2014
Answer :


Answered By : null Replied Date : Apr 5 2014
Answer :


Answered By : null Replied Date : May 13 2014
Answer :


Answered By : null Replied Date : Jun 29 2014
Answer :


Answered By : null Replied Date : Nov 9 2014
Answer :


Answered By : null Replied Date : Dec 8 2014
Answer :


Answered By : null Replied Date : Jan 8 2015
Answer :


Answered By : null Replied Date : Jul 14 2015
Answer :


Answered By : null Replied Date : Jul 16 2015
Answer :


Answered By : null Replied Date : Jul 19 2015
Answer :


Answered By : null Replied Date : Aug 19 2015
Answer :


Answered By : YoUR DAD Replied Date : Aug 30 2015
Answer : man need answer not the fande.......bla bla story


Answered By : null Replied Date : Mar 21 2016
Answer :


Answered By : null Replied Date : Apr 4 2016
Answer :


Answered By : null Replied Date : Apr 27 2016
Answer :


Answered By : null Replied Date : May 30 2017
Answer :


Answered By : null Replied Date : Jun 11 2017
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy