@groovy.util.logging.Slf4j class DefaultMappingConfigurationBuilder extends java.lang.Object implements MappingConfigurationBuilder
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
VERSION_KEY |
| Type | Name and description |
|---|---|
java.util.Map<java.lang.String, Property> |
properties |
java.lang.Class |
propertyClass |
Entity |
target |
| Constructor and description |
|---|
DefaultMappingConfigurationBuilder(Entity target, java.lang.Class propertyClass) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Entity |
evaluate(groovy.lang.Closure callable, java.lang.Object context) |
|
java.util.Map<java.lang.String, Property> |
getProperties()Merges the builder's own property map (populated by invokeMethod during evaluation of the mapping/constraints closures) with target.propertyConfigs (populated by alternate paths such as
Entity.property(name, Map) or constraint evaluators that write
directly to the entity's property configs). |
|
java.lang.Object |
invokeMethod(java.lang.String name, java.lang.Object args) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Merges the builder's own property map (populated by invokeMethod
during evaluation of the mapping/constraints closures) with
target.propertyConfigs (populated by alternate paths such as
Entity.property(name, Map) or constraint evaluators that write
directly to the entity's property configs).
When the same key is present in both maps, the builder's instance
wins. This protects mapping-configured settings such as
index: true and indexAttributes from being silently
overwritten by a less-configured instance in propertyConfigs.
The dual-store design (this builder's properties field vs.
the entity's propertyConfigs) is a structural legacy; collapsing
the two into a single canonical store would let this method go away.
See #15680.