Class 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 Detail

      • BeangleSessionContext

        public BeangleSessionContext​(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
        Create a new SpringSessionContext for the given Hibernate SessionFactory.
        Parameters:
        sessionFactory - the SessionFactory to provide current Sessions for
    • Method Detail

      • currentSession

        public org.hibernate.Session currentSession()
                                             throws org.hibernate.HibernateException
        Retrieve the Spring-managed Session for the current thread, if any.
        Specified by:
        currentSession in interface org.hibernate.context.spi.CurrentSessionContext
        Throws:
        org.hibernate.HibernateException