Defines the contract for implementations which know how to
scope the notion of a
org.hibernate.SessionFactory.getCurrentSession current session .
Implementations should adhere to the following:
Implementors should be aware that they are also fully responsible for
cleanup of any generated current-sessions.
Note that there will be exactly one instance of the configured
CurrentSessionContext implementation per
org.hibernate.SessionFactory .
author: Steve Ebersole
Retrieve the current session according to the scoping defined
by this implementation.
The current session. throws: org.hibernate.HibernateException - Typically indicates an issuelocating or creating the current session.