Class SpringJtaSessionContext
java.lang.Object
org.hibernate.context.spi.AbstractCurrentSessionContext
org.hibernate.context.internal.JTASessionContext
org.springframework.orm.hibernate5.SpringJtaSessionContext
- All Implemented Interfaces:
Serializable
,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:
- 4.2
- Author:
- Juergen Hoeller
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.context.internal.JTASessionContext
org.hibernate.context.internal.JTASessionContext.CleanupSync
-
Constructor Summary
-
Method Summary
Methods inherited from class org.hibernate.context.internal.JTASessionContext
currentSession, getConnectionReleaseMode, isAutoCloseEnabled, isAutoFlushEnabled
Methods inherited from class org.hibernate.context.spi.AbstractCurrentSessionContext
baseSessionBuilder, factory, validateExistingSession
-
Constructor Details
-
SpringJtaSessionContext
-
-
Method Details
-
buildOrObtainSession
- Overrides:
buildOrObtainSession
in classorg.hibernate.context.internal.JTASessionContext
-