接口 CurrentSessionContext

    • 方法详细资料

      • currentSession

        Session currentSession()
                        throws HibernateException
        Retrieve the current session according to the scoping defined by this implementation.
        返回:
        The current session.
        抛出:
        HibernateException - Typically indicates an issue locating or creating the current session.