public class SpringXSessionContext extends Object implements CurrentXSessionContext
| Constructor and Description |
|---|
SpringXSessionContext(XSessionFactoryImplementor sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
XSession |
currentSession()
Retrieve the Spring-managed Session for the current thread, if any.
|
public SpringXSessionContext(XSessionFactoryImplementor sessionFactory)
public XSession currentSession() throws org.hibernate.HibernateException
currentSession in interface CurrentXSessionContextcurrentSession in interface org.hibernate.context.spi.CurrentSessionContextorg.hibernate.HibernateExceptionCopyright © 2015. All rights reserved.