org.springframework.orm.hibernate4
Class SpringJtaSessionContext
java.lang.Object
org.hibernate.context.internal.JTASessionContext
org.springframework.orm.hibernate4.SpringJtaSessionContext
- All Implemented Interfaces:
- Serializable, org.hibernate.context.spi.CurrentSessionContext
public class SpringJtaSessionContext
- extends org.hibernate.context.internal.JTASessionContext
Spring-specific subclass of Hibernate's JTASessionContext,
setting FlushMode.MANUAL
for read-only transactions.
- Since:
- 3.1
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.context.internal.JTASessionContext |
currentSession, getConnectionReleaseMode, isAutoCloseEnabled, isAutoFlushEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringJtaSessionContext
public SpringJtaSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor factory)
buildOrObtainSession
protected Session buildOrObtainSession()
- Overrides:
buildOrObtainSession
in class org.hibernate.context.internal.JTASessionContext