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,
posted 8 years ago
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.