What is use of transaction in hibernate?



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

Post New Answer

More Hibernate Interview Questions

Is httpsession thread safe?

1 Answers  


What is bidirectional mapping in hibernate?

1 Answers  


What is a native query?

1 Answers  


What are the types of inheritance models in hibernate?

1 Answers  


What is the difference between @controller and @component?

1 Answers  


Which is better hibernate or jdbc?

1 Answers  


What is lazy loading and why is it used for?

1 Answers  


How to make a immutable class in hibernate?

1 Answers  


List the key components of hibernate.

1 Answers  


What is hibernate framework used for?

1 Answers  


How to use application server JNDI DataSource with Hibernate framework?

1 Answers  


What is the role of JMX in hibernate?

1 Answers  


Categories