I've been doing some work with Hibernate 3.5 and Spring 3 recently, I'm fairly new with Hibernate and thought the HibernateDaoSupport
class in Spring made it nice and easy to use Hibernate with my domain classes.
However, while searching for an unrelated question I saw someone mention that the HibernateDaoSupport
is not the best way to use Spring and Hibernate. Can anyone shed any light on:
- Why is it not recommended?
- What is the best (or at least the accepted) way to integrate Hibernate and Spring?