A Mapping context for Hibernate
Fields inherited from class | Fields |
---|---|
class AbstractMappingContext |
GROOVY_PROXY_FACTORY_NAME, JAVASIST_PROXY_FACTORY, CONFIGURATION_PREFIX |
Constructor and description |
---|
HibernateMappingContext
(HibernateConnectionSourceSettings settings, java.lang.Object contextObject, java.lang.Class... persistentClasses) Construct a HibernateMappingContext for the given arguments |
HibernateMappingContext
(HibernateConnectionSourceSettings settings, java.lang.Class... persistentClasses) |
HibernateMappingContext
() |
HibernateMappingContext
(org.springframework.core.env.PropertyResolver configuration, java.lang.Object contextObject, java.lang.Class... persistentClasses) |
HibernateMappingContext
(org.springframework.core.env.PropertyResolver configuration, java.lang.Object contextObject, groovy.lang.Closure defaultConstraints, java.lang.Class... persistentClasses) |
HibernateMappingContext
(org.springframework.core.env.PropertyResolver configuration, java.lang.Object contextObject) |
HibernateMappingContext
(groovy.lang.Closure defaultMapping) |
HibernateMappingContext
(groovy.lang.Closure defaultMapping, java.lang.Object contextObject) |
Type Params | Return Type | Name and description |
---|---|---|
|
PersistentEntity |
createEmbeddedEntity(java.lang.Class type) |
|
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass) |
|
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass, boolean external) |
|
MappingFactory |
getMappingFactory() |
|
MappingConfigurationStrategy |
getMappingSyntaxStrategy() |
|
static boolean |
isDomainClass(java.lang.Class clazz) |
|
void |
setDefaultConstraints(groovy.lang.Closure defaultConstraints) Sets the default constraints to be used |
Construct a HibernateMappingContext for the given arguments
settings
- The HibernateConnectionSourceSettings settingscontextObject
- The context object (for example a Spring ApplicationContext)persistentClasses
- The persistent classesSets the default constraints to be used
defaultConstraints
- The default constraints