This will appear if you didn’t define the current_session_context_class property. One possible way of fixing this would be adding:
<property name=”current_session_context_class”>thread</property>
to your hibernate.cfg.xml
This will appear if you didn’t define the current_session_context_class property. One possible way of fixing this would be adding:
<property name=”current_session_context_class”>thread</property>
to your hibernate.cfg.xml
0 Responses to “Hibernate exceptions 0.02 Exception in thread “main” org.hibernate.HibernateException: No CurrentSessionContext configured!”