@groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) @groovy.transform.AutoClone static class HibernateConnectionSourceSettings.HibernateSettings extends java.util.LinkedHashMap<java.lang.String, java.lang.String>
| Modifiers | Name | Description |
|---|---|---|
static class |
HibernateConnectionSourceSettings.HibernateSettings.CacheSettings |
|
static class |
HibernateConnectionSourceSettings.HibernateSettings.FlushSettings |
|
static class |
HibernateConnectionSourceSettings.HibernateSettings.OsivSettings |
Settings for OpenSessionInView |
| Type | Name and description |
|---|---|
java.util.Properties |
additionalPropertiesAny additional properties that should be passed through as is. |
java.lang.Class<?>[] |
annotatedClassesSpecify annotated entity classes to register with this Hibernate SessionFactory. |
java.lang.String[] |
annotatedPackagesSpecify the names of annotated packages, for which package-level annotation metadata will be read. |
HibernateConnectionSourceSettings.HibernateSettings.CacheSettings |
cacheCache settings |
org.springframework.core.io.Resource[] |
cacheableMappingLocationsSet locations of cacheable Hibernate mapping files, for example as web app resource "/WEB-INF/mapping/example.hbm.xml". |
java.lang.Class<? extends AbstractClosureEventTriggeringInterceptor> |
closureEventTriggeringInterceptorClassA subclass of AbstractClosureEventTriggeringInterceptor |
java.lang.Class<? extends org.hibernate.cfg.Configuration> |
configClassThe configuration class |
org.springframework.core.io.Resource[] |
configLocationsSet the locations of multiple Hibernate XML config files, for example as classpath resources "classpath:hibernate.cfg.xml,classpath:extension.cfg.xml". |
java.lang.Class<? extends org.hibernate.CustomEntityDirtinessStrategy> |
entity_dirtiness_strategy |
AbstractClosureEventTriggeringInterceptor |
eventTriggeringInterceptorThe event triggering interceptor |
HibernateConnectionSourceSettings.HibernateSettings.FlushSettings |
flushFlush settings |
boolean |
hibernateDirtyCheckingWhether to use Hibernate's dirty checking instead of Grails' |
HibernateEventListeners |
hibernateEventListenersThe default hibernate event listeners |
org.springframework.core.io.Resource[] |
mappingDirectoryLocationsSet locations of directories that contain Hibernate mapping resources, like "WEB-INF/mappings". |
org.springframework.core.io.Resource[] |
mappingJarLocationsSet locations of jar files that contain Hibernate mapping resources, like "WEB-INF/lib/example.hbm.jar". |
org.springframework.core.io.Resource[] |
mappingLocationsSet locations of Hibernate mapping files, for example as classpath resource "classpath:example.hbm.xml". |
java.lang.Class<? extends org.hibernate.cfg.NamingStrategy> |
naming_strategyThe naming strategy |
HibernateConnectionSourceSettings.HibernateSettings.OsivSettings |
osivWhether OpenSessionInView should be read-only |
java.lang.String[] |
packagesToScanSpecify packages to search for autodetection of your entity classes in the classpath. |
boolean |
readOnlyWhether Hibernate should be in read-only mode |
| Constructor and description |
|---|
HibernateConnectionSourceSettings.HibernateSettings() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
populateProperties(java.util.Properties props, java.util.Map current, java.lang.String prefix) |
|
java.util.Map<java.lang.String, java.lang.Object> |
toHibernateEventListeners(AbstractClosureEventTriggeringInterceptor eventTriggeringInterceptor) |
|
java.util.Properties |
toProperties()Convert to Hibernate properties |
Any additional properties that should be passed through as is.
Specify annotated entity classes to register with this Hibernate SessionFactory.
Specify the names of annotated packages, for which package-level annotation metadata will be read.
Cache settings
Set locations of cacheable Hibernate mapping files, for example as web app resource "/WEB-INF/mapping/example.hbm.xml". Supports any resource location via Spring's resource abstraction, as long as the resource can be resolved in the file system.
Can be used to add to mappings from a Hibernate XML config file, or to specify all mappings locally.
A subclass of AbstractClosureEventTriggeringInterceptor
The configuration class
Set the locations of multiple Hibernate XML config files, for example as classpath resources "classpath:hibernate.cfg.xml,classpath:extension.cfg.xml".
Note: Can be omitted when all necessary properties and mapping resources are specified locally via this bean.
The event triggering interceptor
Flush settings
Whether to use Hibernate's dirty checking instead of Grails'
The default hibernate event listeners
Set locations of directories that contain Hibernate mapping resources, like "WEB-INF/mappings".
Can be used to add to mappings from a Hibernate XML config file, or to specify all mappings locally.
Set locations of jar files that contain Hibernate mapping resources, like "WEB-INF/lib/example.hbm.jar".
Can be used to add to mappings from a Hibernate XML config file, or to specify all mappings locally.
Set locations of Hibernate mapping files, for example as classpath resource "classpath:example.hbm.xml". Supports any resource location via Spring's resource abstraction, for example relative paths like "WEB-INF/mappings/example.hbm.xml" when running in an application context.
Can be used to add to mappings from a Hibernate XML config file, or to specify all mappings locally.
The naming strategy
Whether OpenSessionInView should be read-only
Specify packages to search for autodetection of your entity classes in the classpath. This is analogous to Spring's component-scan feature (org.springframework.context.annotation.ClassPathBeanDefinitionScanner).
Whether Hibernate should be in read-only mode
Convert to Hibernate properties
Groovy Documentation