** 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().
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().