Class NearbyNestedMapping

java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.NearbyNestedMapping

public class NearbyNestedMapping extends Object
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 Details

    • NearbyNestedMapping

      public NearbyNestedMapping(String fieldPath)
  • Method Details

    • withGetter

      public NearbyNestedMapping withGetter(org.modelmapper.spi.SourceGetter<?> getter)
    • withSetter

      public NearbyNestedMapping withSetter(org.modelmapper.spi.DestinationSetter<?,?> setter)
    • getFieldPath

      public String 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object