@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 |
additionalProperties Any additional properties that should be passed through as is. |
java.lang.Class<?>[] |
annotatedClasses Specify annotated entity classes to register with this Hibernate SessionFactory. |
java.lang.String[] |
annotatedPackages Specify the names of annotated packages, for which package-level annotation metadata will be read. |
HibernateConnectionSourceSettings.HibernateSettings.CacheSettings |
cache Cache settings |
org.springframework.core.io.Resource[] |
cacheableMappingLocations Set locations of cacheable Hibernate mapping files, for example as web app resource "/WEB-INF/mapping/example.hbm.xml". |
java.lang.Class<? extends AbstractClosureEventTriggeringInterceptor> |
closureEventTriggeringInterceptorClass A subclass of AbstractClosureEventTriggeringInterceptor |
java.lang.Class<? extends org.hibernate.cfg.Configuration> |
configClass The configuration class |
org.springframework.core.io.Resource[] |
configLocations Set 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 |
eventTriggeringInterceptor The event triggering interceptor |
HibernateConnectionSourceSettings.HibernateSettings.FlushSettings |
flush Flush settings |
boolean |
hibernateDirtyChecking Whether to use Hibernate's dirty checking instead of Grails' |
HibernateEventListeners |
hibernateEventListeners The default hibernate event listeners |
org.springframework.core.io.Resource[] |
mappingDirectoryLocations Set locations of directories that contain Hibernate mapping resources, like "WEB-INF/mappings". |
org.springframework.core.io.Resource[] |
mappingJarLocations Set locations of jar files that contain Hibernate mapping resources, like "WEB-INF/lib/example.hbm.jar". |
org.springframework.core.io.Resource[] |
mappingLocations Set locations of Hibernate mapping files, for example as classpath resource "classpath:example.hbm.xml". |
java.lang.Class<? extends org.hibernate.cfg.NamingStrategy> |
naming_strategy The naming strategy |
HibernateConnectionSourceSettings.HibernateSettings.OsivSettings |
osiv Whether OpenSessionInView should be read-only |
java.lang.String[] |
packagesToScan Specify packages to search for autodetection of your entity classes in the classpath. |
boolean |
readOnly Whether 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