@groovy.util.logging.Slf4j class HibernateDatastoreSpringInitializer extends AbstractDatastoreInitializer
Class that handles the details of initializing GORM for Hibernate
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DATA_SOURCES |
|
static java.lang.String |
DEFAULT_DATA_SOURCE_NAME |
|
static java.lang.String |
SESSION_FACTORY_BEAN_NAME |
|
static java.lang.String |
TEST_DB_URL |
Fields inherited from class | Fields |
---|---|
class AbstractDatastoreInitializer |
ENTITY_CLASS_RESOURCE_PATTERN, OSIV_CLASS_NAME, TRANSACTION_MANAGER_BEAN, classLoader, secondaryDatastore |
Type | Name and description |
---|---|
java.util.Set<java.lang.String> |
dataSources |
java.lang.String |
defaultDataSourceBeanName |
java.lang.String |
defaultSessionFactoryBeanName |
boolean |
enableReload |
boolean |
grailsPlugin |
Constructor and description |
---|
HibernateDatastoreSpringInitializer
(org.springframework.core.env.PropertyResolver configuration, java.util.Collection<java.lang.Class> persistentClasses) |
HibernateDatastoreSpringInitializer
(org.springframework.core.env.PropertyResolver configuration, java.lang.Class[] persistentClasses) |
HibernateDatastoreSpringInitializer
(org.springframework.core.env.PropertyResolver configuration, java.lang.String[] packages) |
HibernateDatastoreSpringInitializer
(java.util.Map configuration, java.lang.Class[] persistentClasses) |
HibernateDatastoreSpringInitializer
(java.util.Map configuration, java.util.Collection<java.lang.Class> persistentClasses) |
Type Params | Return Type | Name and description |
---|---|---|
|
org.springframework.context.ApplicationContext |
configure() Configures an in-memory test data source, don't use in production |
|
void |
configureDataSources(org.springframework.core.env.PropertyResolver config) |
|
org.springframework.context.ApplicationContext |
configureForDataSource(javax.sql.DataSource dataSource) |
|
protected org.springframework.context.support.GenericApplicationContext |
createApplicationContext() |
|
groovy.lang.Closure |
getBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) |
|
protected java.lang.Class<AbstractDatastorePersistenceContextInterceptor> |
getPersistenceInterceptorClass() |
|
protected java.lang.String |
getTestDbUrl() |
Configures an in-memory test data source, don't use in production
Groovy Documentation