com.xpn.xwiki.store.hibernate
Class DefaultHibernateSessionFactory
java.lang.Object
com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory
- All Implemented Interfaces:
- HibernateSessionFactory
@Component
@Singleton
public class DefaultHibernateSessionFactory
- extends Object
- implements HibernateSessionFactory
Default implementation for HibernateSessionFactory
.
- Since:
- 2.0M1
- Version:
- $Id: 38bdff9d81cec77af1a2ac7e95c4fd22eabab916 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHibernateSessionFactory
public DefaultHibernateSessionFactory()
getConfiguration
public org.hibernate.cfg.Configuration getConfiguration()
- Specified by:
getConfiguration
in interface HibernateSessionFactory
- Returns:
- Hibernate Configuration object
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
- Specified by:
getSessionFactory
in interface HibernateSessionFactory
- Returns:
- Real Hibernate session factory
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
- Specified by:
setSessionFactory
in interface HibernateSessionFactory
Copyright © 2004-2013 XWiki. All Rights Reserved.