Class ELFieldDefinition


  • public class ELFieldDefinition
    extends FieldDefinition
    Specifies a custom field mapping. Fields that share the same attribute name do not need to be defined. Dozer automatically maps fields that match on attribute name. All Field Mapping definitions are bi-directional by default. Global configuration, Mapping, and ClassDefinition element values are inherited.

    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.