In hibernate.cfg.xml configuration is as follows:
<property name="hibernate.current_session_context_class">thread</property>
In hibernate.cfg.xml configuration is as follows:
<property name="hibernate.current_session_context_class">thread</property>