Spring+Hibernate, Autowire sessionFactory into hibernate DAO
Did you declare sessionFactory bean?
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation">
<value>file:src/hibernate.cfg.xml</value>
</property>
</bean>
I think your problem is @Autowired
@Autowired private SessionFactory sessionFactory;