current session.
Implementations should adhere to the following:
org.hibernate.engine.spi.SessionFactoryImplementor
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..
| Modifier and Type | Method and Description |
|---|---|
| public Session | Returns: The current session.
Deprecated
as a consequence of
Retrieve the current session according to the scoping defined
by this implementation.
Session being deprecated.
|
| currentSession | back to summary |
|---|---|
| public Session currentSession() throws HibernateException
Deprecated as a consequence of Retrieve the current session according to the scoping defined by this implementation.
| |