Monday, 9 June 2014

Posted by Unknown  
Tagged as:
14:07

                                      ** Differences Between Save and Persist of session of hibernate ***
                                                                                  In short !                                                                                  



 : save() method returns type is serealizable,and persist() method is void.

: save() returns the id of inserted object in the form of a serealizable object.

:persist() doesnot return the id.

:when Generator class of id is other than assign then we preferred o call save() and In case
  
:In case of assigned generator we call persist().

About the Author

Write admin description here..

0 comments:

Pages

What they says

Proudly Powered by Ujwala Rathod.
back to top