I\'m trying to access the current hibernate session in a test case, and getting the following error:
org.hibernate.HibernateException: No Hibernate
Spring ignores hibernate.current_session_context_class=thread property (which you don't use) and wraps Hibernate’s SessionFactory in it's own transactional version as explained here
hibernate.current_session_context_class=thread
SessionFactory
The solution to this is to set the property
false
in session factory bean configuration