Package com.atlassian.hibernate
Class ConfluenceSessionContext
- java.lang.Object
-
- com.atlassian.hibernate.ConfluenceSessionContext
-
- All Implemented Interfaces:
Serializable
,org.hibernate.context.spi.CurrentSessionContext
public class ConfluenceSessionContext extends Object implements org.hibernate.context.spi.CurrentSessionContext
A simplified variant ofSpringSessionContext
which re-resolves the suppliedSessionFactory
against theSessionFactoryRegistry
to work around the programmatic wrapping of the SessionFactory that would otherwise breakTransactionSynchronizationManager
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfluenceSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.Session
currentSession()
-