in Technology by
What is the difference between save() and persist() method in Hibernate?

1 Answer

0 votes
by
The main difference between the save() and persist() method is that, save returns a Serializable object while the return type of the persist() method is void, so it doesn't return anything.

Related questions

0 votes
    What is Difference between save(), saveOrUpdate() and persist() in Hibernate Session?...
asked Feb 4, 2021 in Technology by JackTerrance
0 votes
    Difference between get() vs load() method in Hibernate?...
asked Feb 4, 2021 in Technology by JackTerrance
0 votes
    I have a problem with Hibernate. In Short: How to configure a ManyToMany association with Hibernate when the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 21, 2022 in Education by JackTerrance
0 votes
    What is the difference between Hibernate and EJB 3? Do not you think EJB 3 is just a clone of Hibernate?...
asked Jun 5, 2021 in Technology by JackTerrance
0 votes
    What is the difference between the first and second level cache in Hibernate?...
asked Feb 4, 2021 in Technology by JackTerrance
+1 vote
    What is the method to save data in a stack data structure type?...
asked Nov 8, 2020 in Technology by JackTerrance
0 votes
    Which is the method used to save chart as a ps file? (a) ps() (b) postscript() (c) ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    How To Persist Root Device Volume In Amazon Ec2 Instance ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    Regarding the Castle Automatic Transaction Management Facility; I'm having some difficulties getting operations to ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    If you see jqGrid demo : http://www.trirand.com/blog/jqgrid/jqgrid.html Section : Advanced --> ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    If you see jqGrid demo : http://www.trirand.com/blog/jqgrid/jqgrid.html Section : Advanced --> ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    I am migrating my Java,Tomcat, Mysql server to AWS EC2. I have already attached EBS volume for storing MySql ... you guide. Thanks Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I am migrating my Java,Tomcat, Mysql server to AWS EC2. I have already attached EBS volume for storing MySql ... you guide. Thanks Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    What is the difference between a constructor and a method?...
asked Feb 9, 2023 in Technology by JackTerrance
0 votes
    What is the difference between method overloading and method overriding?...
asked Feb 9, 2023 in Technology by JackTerrance
...