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 |
What is difference between hibernate and ibatis?
What is bidirectional mapping in hibernate?
What is inheritance mapping in hibernate?
What is an entity in hibernate?
What are the ways to access hibernate by using spring?
What is fetchtype lazy in hibernate?
What is meant by a Named SQL Query in hibernate and how it’s used?
What is the difference between load() and get() method in hibernate?
What is hibernate persistence context?
What is stateless session in hibernate?
Can I use hibernate without jpa?
What is fetchtype in hibernate?