Class GenericModel2MapPopulator
- java.lang.Object
-
- de.hybris.platform.sap.core.configuration.populators.GenericModel2MapPopulator
-
public class GenericModel2MapPopulator extends java.lang.Object implements Populator<ItemModel,java.util.Map<java.lang.String,java.lang.Object>>
Generic populator which automatically populates model properties to map.The following logic is executed
- values of properties with same names are copied
- related model PKs are copied to the according properties with PK suffix
-
-
Constructor Summary
Constructors Constructor Description GenericModel2MapPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpopulate(ItemModel model, java.util.Map<java.lang.String,java.lang.Object> propertyMap)Populate the target instance with values from the source instance.
-
-
-
Method Detail
-
populate
public void populate(ItemModel model, java.util.Map<java.lang.String,java.lang.Object> propertyMap) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ItemModel,java.util.Map<java.lang.String,java.lang.Object>>- Parameters:
model- the source objectpropertyMap- the target to fill- Throws:
ConversionException- if an error occurs
-
-