Is merge better than update?



Is merge better than update?..

Answer / Ankit

Merge provides a more robust solution as it allows you to replace only certain fields of an entity in the database, while Update updates all columns. Merge is also useful when dealing with versions or optimistic locking.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is difference between hibernate and ibatis?

1 Answers  


What is bidirectional mapping in hibernate?

1 Answers  


What is inheritance mapping in hibernate?

1 Answers  


What is an entity in hibernate?

1 Answers  


What are the ways to access hibernate by using spring?

1 Answers  


What is fetchtype lazy in hibernate?

1 Answers  


What is meant by a Named SQL Query in hibernate and how it’s used?

1 Answers  


What is the difference between load() and get() method in hibernate?

1 Answers  


What is hibernate persistence context?

1 Answers  


What is stateless session in hibernate?

1 Answers  


Can I use hibernate without jpa?

1 Answers  


What is fetchtype in hibernate?

1 Answers  


Categories