Class ReferencePropertyMapping
java.lang.Object
io.jmix.dataimport.configuration.mapping.ReferencePropertyMapping
- All Implemented Interfaces:
PropertyMapping
Mapping for reference property by one lookup property that has a raw value in the input data.
This mapping allows to set:
This mapping allows to set:
- Entity property name: name of the reference property
- Lookup property name: name of the property from reference entity
- Data field name: name of the data field that contains a raw value of lookup property
- Reference import policy. Default value:
ReferenceImportPolicy.IGNORE_IF_MISSING
- See Also:
-
Constructor Summary
ConstructorDescriptionReferencePropertyMapping
(String entityPropertyName, String dataFieldName, String lookupPropertyName, ReferenceImportPolicy importPolicy) -
Method Summary
Modifier and TypeMethodDescriptionGets a data field name.Gets an entity property name.
-
Constructor Details
-
ReferencePropertyMapping
public ReferencePropertyMapping(String entityPropertyName, String dataFieldName, String lookupPropertyName, ReferenceImportPolicy importPolicy)
-
-
Method Details
-
getEntityPropertyName
Description copied from interface:PropertyMapping
Gets an entity property name.- Specified by:
getEntityPropertyName
in interfacePropertyMapping
- Returns:
- entity property name
-
getDataFieldName
Description copied from interface:PropertyMapping
Gets a data field name.- Specified by:
getDataFieldName
in interfacePropertyMapping
- Returns:
- data field name
-
getLookupPropertyName
-
getReferenceImportPolicy
-