You can use the HibernaeTemplate instead of HibernateDAO support. In HibernateDAO support you need the HibernateTemplate reference using getHibernateTemplate() method.
Additionally implemented the spring/hibernate you can develop your own class which is extends the HibernateTemplate class.
Your class defination is defined in the web.xml file.
vikas sharmaa wrote:i am starting a new project using Spring and Hibernate.
i have a doubt regarding which approach to follow. HibernateTemplate or HibernateDaoSupport or some core Hibernate way (used in petclinic project).
If you are using Hibernate 3.1 or above, I would say neither. Inject a SessionFactory into your DAO/Repositories instead. In these versions of Hibernate you will get no benefit from HibernateTemplate or DaoSupport classes.