public Session getSession() {
        return sessionFactory.getCurrentSession();
    }
Convenience superclass for DAOs that contains annotations for injecting the session factory
and accessing the session.
samples/spring-hibernate/src/main/java/org/apache/shiro/samples/sprhib/dao/HibernateDao.java