What is use of transaction in hibernate?
Answer / Rohit Porwal
Transactions in Hibernate are used to group multiple database operations together, ensuring they either all succeed or all fail. This provides atomicity and consistency, ensuring that data remains consistent even when there are concurrent transactions or errors during the operation. Transactions also allow you to manage savepoints, rollback changes, and control isolation levels.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is httpsession thread safe?
What is bidirectional mapping in hibernate?
What is a native query?
What are the types of inheritance models in hibernate?
What is the difference between @controller and @component?
Which is better hibernate or jdbc?
What is lazy loading and why is it used for?
How to make a immutable class in hibernate?
List the key components of hibernate.
What is hibernate framework used for?
How to use application server JNDI DataSource with Hibernate framework?
What is the role of JMX in hibernate?