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