Friday, March 31, 2017

What is the difference between ses.save(-) and ses.persist(-) method in Hibernate

       What is the difference between ses.save(-) and ses.persist(-) method ?

ses.save(-) method gives instruction to hibernate framework to save object and also returns  the generated identity values back to java application where as ses.persist(-) does not return the dame identity value .

ses.save(-) method return type is “Serializable(I)”.

ses.persist(-) method return type is “void”.

Prototype :-

public void persist(Object obj)

No comments:

Post a Comment