I am trying to understand how SessionFactory object is being wired in a Spring/Hibernate application.
Consider the example from book Spring Live (also available on: http://www.sourcebeat.com/downloads/...-completed.zip)
According to applicationContext.xml:
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSess ionFactoryBean">
<property name="dataSource"><ref local="dataSource"/></property>
<bean id="userDAO" class="org.appfuse.dao.hibernate.UserDAOHibernate" >
<property name="sessionFactory"><ref local="sessionFactory"/></property>
class UserDAOHibernate must have method setSessionFactory(...) which it does not, however I have looked in
HibernateDaoSupport which UserDAOHibernate extends and found the method but it has different signature -
the parameter is of different type: SessionFactory instead of LocalSessionFactoryBean.
I am lost at this point.
Please shed some light on it.