I have a GenericHibernateDAOSupport class which has some reusable code which every xxxDAO can use.
Now, in my applicationcontext.xml file I want to define the sessionfactory for the GenericHibernateDAOSupport & not for every xxxDAO. How do I accomplish this? Any help is appreciated.
I have a defn,
<bean id="myxxxDAO" class="com.xxx.hibernate.xxxDAOHibernateImpl">
<property name="sessionFactory"><ref local="mySessionFactory"/></property>
</bean>
<bean id="myGenericDAO" class="com.xxx.dao.GenericHibernateDAOSupport">
<property name="sessionFactory"><ref local="mySessionFactory"/></property>
</bean>


Reply With Quote