public class SpringSessionContext extends Object implements CurrentSessionContext
This CurrentSessionContext implementation can also be specified in custom SessionFactory setup through the "hibernate.current_session_context_class" property, with the fully qualified name of this class as value.
| Constructor and Description |
|---|
SpringSessionContext(SessionFactoryImplementor sessionFactory)
Create a new SpringSessionContext for the given Hibernate SessionFactory.
|
public SpringSessionContext(SessionFactoryImplementor sessionFactory)
sessionFactory - the SessionFactory to provide current Sessions forpublic Session currentSession() throws HibernateException
currentSession in interface CurrentSessionContextHibernateException