Package org.beangle.orm.hibernate
Class BeangleSessionContext
- java.lang.Object
-
- org.beangle.orm.hibernate.BeangleSessionContext
-
- All Implemented Interfaces:
Serializable,org.hibernate.context.spi.CurrentSessionContext
public class BeangleSessionContext extends Object implements org.hibernate.context.spi.CurrentSessionContext
- Version:
- $Id: BeangleSessionContext.java Feb 27, 2012 11:30:56 PM chaostone $
- Author:
- chaostone
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BeangleSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)Create a new SpringSessionContext for the given Hibernate SessionFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.SessioncurrentSession()Retrieve the Spring-managed Session for the current thread, if any.
-
-
-
Method Detail
-
currentSession
public org.hibernate.Session currentSession() throws org.hibernate.HibernateExceptionRetrieve the Spring-managed Session for the current thread, if any.- Specified by:
currentSessionin interfaceorg.hibernate.context.spi.CurrentSessionContext- Throws:
org.hibernate.HibernateException
-
-