public class ELFieldDefinition extends FieldDefinition
Hints are used for mapping Collection types. A hint indicates which type of destination object should be created and added to the destination Collection.
Required Attributes:
Optional Attributes:
relationship-type For collections, indicates whether to add to existing values or to always replace any existing entries
remove-orphans For collections, indicates whether items that did not exist in the source collection should be removed from the destination collection.
type Indicates whether this mapping is bi-directional or only one-way. Typically this will be set to bi-directional. The default is "bi-directional".
map-id The id that uniquely identifies this mapping definition. This typically will not be specified. You would only need to specify this for only need this for special context based mapping and when mapping between Map objects and Custom Data Objects.
copy-by-reference Indicates whether the source field value is copied by reference or by value when populating the destination field. The default value is "false"
custom-converter Indicates that a specific custom converter should be used for mapping this field. Typically this will not be specified.
a, aDeepIndexHint, aHint, b, bDeepIndexHint, bHint, copyByReference, customConverter, customConverterId, customConverterParam, mapId, relationshipType, removeOrphans, type| Constructor and Description |
|---|
ELFieldDefinition(ELEngine elEngine,
FieldDefinition copy) |
ELFieldDefinition(ELEngine elEngine,
MappingDefinition parent) |
| Modifier and Type | Method and Description |
|---|---|
FieldMap |
build(ClassMap classMap,
BeanContainer beanContainer,
DestBeanCreator destBeanCreator,
PropertyDescriptorFactory propertyDescriptorFactory) |
end, withA, withADeepIndexHint, withAHint, withB, withBDeepIndexHint, withBHint, withCopyByReference, withCustomConverter, withCustomConverterId, withCustomConverterParam, withMapId, withRelationshipType, withRemoveOrphans, withTypepublic ELFieldDefinition(ELEngine elEngine, FieldDefinition copy)
public ELFieldDefinition(ELEngine elEngine, MappingDefinition parent)
public FieldMap build(ClassMap classMap, BeanContainer beanContainer, DestBeanCreator destBeanCreator, PropertyDescriptorFactory propertyDescriptorFactory)
build in class FieldDefinitionCopyright © 2005–2021 dozer. All rights reserved.