I\'m trying to access the current hibernate session in a test case, and getting the following error:
org.hibernate.HibernateException: No Hibernate
Duh.
Session session = sessionFactory.openSession();
Session session = sessionFactory.getCurrentSession();
Oops.
(Edited since this was wrong, and getting upvoted).