ome.tools.hibernate
Class CurrentSessionContext
java.lang.Object
org.hibernate.context.JTASessionContext
ome.tools.hibernate.CurrentSessionContext
- All Implemented Interfaces:
- Serializable, org.hibernate.context.CurrentSessionContext
public class CurrentSessionContext
- extends org.hibernate.context.JTASessionContext
Implementation of Hibernate's current_session_context_class extension point.
During the move to strict JTA compliance, nested calls to
HibernateTemplate
and SessionFactoryUtils#getSession() were causing
"Session is closed" during CacheSynchronization. See
resources/ome/services/hibernate.xml
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class org.hibernate.context.JTASessionContext |
org.hibernate.context.JTASessionContext.CleanupSynch |
Fields inherited from class org.hibernate.context.JTASessionContext |
factory |
Methods inherited from class org.hibernate.context.JTASessionContext |
currentSession, getConnectionReleaseMode, isAutoFlushEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentSessionContext
public CurrentSessionContext(org.hibernate.engine.SessionFactoryImplementor sf)
buildOrObtainSession
protected org.hibernate.classic.Session buildOrObtainSession()
- Overrides:
buildOrObtainSession
in class org.hibernate.context.JTASessionContext
isAutoCloseEnabled
protected boolean isAutoCloseEnabled()
- Overrides:
isAutoCloseEnabled
in class org.hibernate.context.JTASessionContext
OmeroJava Api
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.