top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to integrate Hibernate and Spring frameworks?

+1 vote
406 views
How to integrate Hibernate and Spring frameworks?
posted May 4, 2016 by Joy Nelson

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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.

Also 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.

answer May 6, 2016 by Karthick.c
...