• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

transaction management

 
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic