Reputation: 45
I am new to hibernate.could any one please help me in configuring the transaction to the database operations in hibernate
my requirement is not use the manual commands, tnx.begin,commit in the code to start and end the transaction
could you anyone is familiar with this ,please help me.......
Thanks in Adavance
Upvotes: 0
Views: 1084
Reputation: 13473
Here is another guide that walks you through adding Hibernate to a Spring MVC project. It includes declarative transactions at the controller level. Scroll to the bottom for downloadable source code.
Upvotes: 0
Reputation: 3858
my requirement is not use the manual commands, tnx.begin,commit in the code to start and end the transaction
Abhinav is right. Start reading the manual and reference first. It's free anyway :)
For starters, use @Transactional in your service. If you need a step-by-step guide, you can check this guide Spring 3 MVC - Hibernate 3: Using Annotations Integration Tutorial
Upvotes: 1
Reputation: 23812
You can start by reading the Spring documents about transaction management.
Also take a look at this series of tutorials on Spring on IBM devworks.
Upvotes: 1