public class BeangleSessionContext extends Object implements org.hibernate.context.spi.CurrentSessionContext
| Constructor and Description |
|---|
BeangleSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
Create a new SpringSessionContext for the given Hibernate SessionFactory.
|
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.Session |
currentSession()
Retrieve the Spring-managed Session for the current thread, if any.
|
public BeangleSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
sessionFactory - the SessionFactory to provide current Sessions forpublic org.hibernate.Session currentSession()
throws org.hibernate.HibernateException
currentSession in interface org.hibernate.context.spi.CurrentSessionContextorg.hibernate.HibernateExceptionCopyright © 2005–2014 The Beangle Software Group. All rights reserved.