Class NearbyNestedMapping
java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.NearbyNestedMapping
A reference to a complex type field (collection or ToOne). Unlike other fields discovered during
MappingUtils.fromMeOptimizedTypeMapWithConverter(ModelMapper, Class, Class, Function, NearbyNestedMapping...)
and
MappingUtils.toMeOptimizedTypeMapWithConverter(ModelMapper, Class, Class, Function, NearbyNestedMapping...)
,
the implicit mappings discovered for these fields are not marked as skipped, and ModelMapper will
handle the mapping for the complex type via a valid, registered new TypeMap for the complex type.
This field is resident directly on the persistent type (not further nested). An additional call
to
MappingUtils.fromMeOptimizedTypeMapWithConverter(ModelMapper, Class, Class, Function, NearbyNestedMapping...)
or
MappingUtils.toMeOptimizedTypeMapWithConverter(ModelMapper, Class, Class, Function, NearbyNestedMapping...)
should be made for the complex member type. Similarly, this additional call may contain its own
NearbyNestedMapping
references. This should be repeated as many times as required to walk
the entire conversion tree.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The field name on the persistent type (not nested)org.modelmapper.spi.SourceGetter<?>
Optional.org.modelmapper.spi.DestinationSetter<?,
?> Optional.int
hashCode()
void
setGetter
(org.modelmapper.spi.SourceGetter<?> getter) Optional.void
setSetter
(org.modelmapper.spi.DestinationSetter<?, ?> setter) Optional.toString()
withGetter
(org.modelmapper.spi.SourceGetter<?> getter) withSetter
(org.modelmapper.spi.DestinationSetter<?, ?> setter)
-
Constructor Details
-
NearbyNestedMapping
-
-
Method Details
-
withGetter
-
withSetter
-
getFieldPath
The field name on the persistent type (not nested) -
getGetter
public org.modelmapper.spi.SourceGetter<?> getGetter()Optional. Getter method reference on the source type. If not set, the system will try to infer the getter based on the fieldPath. -
getSetter
public org.modelmapper.spi.DestinationSetter<?,?> getSetter()Optional. Setter method reference on the destination type. If not set, the system will try to infer the setter based on the fieldPath. -
setGetter
public void setGetter(org.modelmapper.spi.SourceGetter<?> getter) Optional. Getter method reference on the source type. If not set, the system will try to infer the getter based on the fieldPath. -
setSetter
public void setSetter(org.modelmapper.spi.DestinationSetter<?, ?> setter) Optional. Setter method reference on the destination type. If not set, the system will try to infer the setter based on the fieldPath. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-