I am not sure whats the best way to inject Hibernate\'s session instance to DAO classes using Spring3. I am not using Spring\'s Hibernate Template support for this so here i
The advisable way of using Hibernate is through JPA (hibernate-entitymanager):
@PersistenceContext private EntityManager entityManager;
and in the applicationContext.xml:
applicationContext.xml
And you'll need a META-INF/persistence.xml
META-INF/persistence.xml