0 votes
in Spring by

How to integrate Spring and Hibernate Frameworks?

1 Answer

0 votes
by
We can use Spring ORM module to integrate Spring and Hibernate frameworks if you are using Hibernate 3+ where SessionFactory provides current session, then you should avoid using HibernateTemplate or HibernateDaoSupport classes and better to use DAO pattern with dependency injection for the integration.

Spring ORM provides support for using Spring declarative transaction management, so you should utilize that rather than going for Hibernate boiler-plate code for transaction management.

For better understanding you should go through following tutorials:

Spring Hibernate Integration Example

Spring MVC Hibernate Integration Example

Related questions

0 votes
asked Jul 27, 2020 in Spring by Robindeniel
0 votes
asked Jul 28, 2020 in Spring by sharadyadav1986
...