• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction management

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Both Hibernate and Spring are said to maintain transaction management. May I know what is the difference between them.

if I am using both hibernate and spring in my project are we supposed to use transaction management part twice?


Thanks and Regards,
Rahul.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no or little similarity in both, may be only when it comes to data access. Hibernate is an ORM tool, which resides at data access layer, whereas Spring is a full blown application framework and therefore have its own API to access database with bare JDBC or in integration with some ORM like Hibernate.

No, if you are using Spring and Hibernate both, then you should manage your transactions using Hibernate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic