Class GenericModel2DtoPopulator

  • All Implemented Interfaces:
    Populator<ItemModel,​java.lang.Object>

    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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void populate​(ItemModel model, java.lang.Object dto)
      Populate the target instance with values from the source instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericModel2DtoPopulator

        public GenericModel2DtoPopulator()
    • Method Detail