Abstract GORM implementation that uses the GORM MappingConfigurationBuilder to configure entity mappings.
Modifiers | Name | Description |
---|---|---|
protected groovy.lang.Closure |
defaultConstraints |
|
protected java.util.Map<PersistentEntity, R> |
entityToMapping |
|
protected java.util.Map<PersistentEntity, java.util.Map<java.lang.String, T>> |
entityToPropertyMap |
|
protected boolean |
versionByDefault |
Fields inherited from class | Fields |
---|---|
class MappingFactory |
IDENTITY_PROPERTY, SIMPLE_TYPES |
Type Params | Return Type | Name and description |
---|---|---|
|
protected MappingConfigurationBuilder |
createConfigurationBuilder(PersistentEntity entity, R family) |
|
IdentityMapping |
createIdentityMapping(ClassMapping classMapping) |
|
R |
createMappedForm(PersistentEntity entity) |
|
T |
createMappedForm(PersistentProperty mpp) |
|
protected void |
evaluateWithContext(MappingConfigurationBuilder builder, groovy.lang.Closure value) |
|
protected java.lang.Class<R> |
getEntityMappedFormType() |
|
protected IdentityMapping |
getIdentityMappedForm(ClassMapping classMapping, T property) |
|
protected java.lang.Class<T> |
getPropertyMappedFormType() |
|
boolean |
isTenantId(PersistentEntity entity, MappingContext context, java.beans.PropertyDescriptor descriptor) |
|
void |
setContextObject(java.lang.Object contextObject) @param contextObject Context object to be passed to mapping blocks |
|
void |
setDefaultConstraints(groovy.lang.Closure defaultConstraints) |
|
void |
setDefaultMapping(groovy.lang.Closure defaultMapping) |
|
void |
setVersionByDefault(boolean versionByDefault) Whether the version entities using optimistic locking by default |
Methods inherited from class | Name |
---|---|
class MappingFactory |
registerCustomType, isSimpleType, isSimpleType, createMappedForm, createMappedForm, createIdentity, createTenantId, isTenantId, createCustom, createPropertyDescriptor, createSimple, createOneToOne, createManyToOne, createOneToMany, createManyToMany, createEmbedded, createEmbeddedCollection, createBasicCollection, createBasicCollection, isCustomType, createIdentityMapping, createDefaultIdentityMapping, associationtoString, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
contextObject
- Context object to be passed to mapping blocksWhether the version entities using optimistic locking by default
versionByDefault
- True if objects should be versioned by default