Interface DataMapper<S,​D>


  • public interface DataMapper<S,​D>
    The main runtime interface between a Java application and a Data Mapper. This is the central interface abstracting the service of a Java bean mapping. The operation of mapping may include :
    • Creation of new objects : newObject()
    • Conversion object to another type: convert()

    Example of code to map an instance of Entity(entity ) to DTO class:
     ...
     DTO newDTO = mapperFacade.map(entity, DTO.class);
     ...
     
    Since:
    1.0.0
    Author:
    Neha
    • Method Detail

      • map

        D map​(S source)
      • map

        void map​(S source,
                 D destination)