public class HibernateSessionFactoryLoader extends Object implements OrmPersistenceUnitLoader<org.hibernate.SessionFactory,org.hibernate.cfg.Configuration,OrmConfig>
| Modifier and Type | Field and Description |
|---|---|
protected String |
databaseName |
| Constructor and Description |
|---|
HibernateSessionFactoryLoader(String databaseName) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.orm.hibernate3.LocalSessionFactoryBean |
createSessionFactoryBean(Object testObject,
OrmConfig entityManagerConfig) |
protected Class<? extends org.hibernate.cfg.Configuration> |
getConfigurationObjectClass() |
ConfiguredOrmPersistenceUnit<org.hibernate.SessionFactory,org.hibernate.cfg.Configuration> |
getConfiguredOrmPersistenceUnit(Object testObject,
OrmConfig entityManagerConfig) |
protected DatabaseModule |
getDatabaseModule() |
protected DataSource |
getDataSource() |
protected HibernateModule |
getHibernateModule() |
protected String databaseName
public HibernateSessionFactoryLoader(String databaseName)
databaseName - public ConfiguredOrmPersistenceUnit<org.hibernate.SessionFactory,org.hibernate.cfg.Configuration> getConfiguredOrmPersistenceUnit(Object testObject, OrmConfig entityManagerConfig)
getConfiguredOrmPersistenceUnit in interface OrmPersistenceUnitLoader<org.hibernate.SessionFactory,org.hibernate.cfg.Configuration,OrmConfig>testObject - The test object, not nullentityManagerConfig - The persistence unit configuration, not nullConfiguredOrmPersistenceUnit that wraps the persistence unit and an
implementation specific configuration objectprotected org.springframework.orm.hibernate3.LocalSessionFactoryBean createSessionFactoryBean(Object testObject, OrmConfig entityManagerConfig)
protected Class<? extends org.hibernate.cfg.Configuration> getConfigurationObjectClass()
protected DataSource getDataSource()
protected DatabaseModule getDatabaseModule()
protected HibernateModule getHibernateModule()
Copyright © 2017. All rights reserved.