public interface CurrentSessionContext extends Serializable
current session.
Implementations should adhere to the following:
SessionFactoryImplementor
SessionFactory.| Modifier and Type | Method and Description |
|---|---|
Session |
currentSession()
Retrieve the current session according to the scoping defined
by this implementation.
|
Session currentSession() throws HibernateException
HibernateException - Typically indicates an issue
locating or creating the current session.Copyright © 2018 JBoss by Red Hat. All rights reserved.