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:
  • Constructor Details

  • Method Details

    • buildOrObtainSession

      protected Session buildOrObtainSession()
      Overrides:
      buildOrObtainSession in class org.hibernate.context.internal.JTASessionContext