What is the difference between save() and persist() method in hibernate?
Answer / Deepti Karmakar
The save() method in Hibernate saves an entity to the database and manages its association with the session, while the persist() method only adds the entity to the current session without making it persistent. The latter allows for later saving of the entity (either by calling save() or flushing the session).
| Is This Answer Correct ? | 0 Yes | 0 No |
List some of the databases supported by hibernate.
What is cache in hibernate?
How to get single column from database using hibernate?
What is the use of session in hibernate?
What are the advantages of hibernate framework?
What is hibernate architecture?
How to create foreign key in hibernate annotation?
Difference between the first and second level cache in hibernate?
How to use union all in hibernate query?
What is jboss hibernate?
Can we declare entity class as final?
Is httpsession thread safe?