Pergunta de entrevista da empresa Cognizant

What is the difference between save() and persist() methods of session object in Hibernate?

Resposta da entrevista

Sigiloso

25 de ago. de 2016

session.save saves the object and returns the id of the instance whereas persist do not return anything after saving the instance.