What is difference between update and merge in hibernate?
Answer / Saurab Kumar Verma
Update in Hibernate updates an existing entity instance based on its primary key, while Merge checks if an entity with the same primary key already exists. If it does, it merges the changes of the passed-in transient entity into the persistent entity.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we use multiple database in hibernate?
Why use hibernate framework?
Does hibernate work with nosql?
What are the different types of extension interface that is present in hibernate?
Define cascade and inverse option in one-many mapping?
What are the advantages of Hibernate over JDBC?
What does hibernate.properties file consist of?
What is cascadetype in hibernate annotations?
How can we bind hibernate session factory to JNDI ?
Difference between save() and saveorupdate() in hibernate?
What are the Collection types in Hibernate?
What is lazy loading in hibernate and how is it done?