Interface DtoToEntityMapper<D,E>

Type Parameters:
D - The class of the DTO.
E - The class of the entity.
All Known Subinterfaces:
SearchCriteriaMapper
All Known Implementing Classes:
ConditionalOperatorMapper, ConditionalSearchCriteriaMapper, LogicalOperatorMapper, LogicalSearchCriteriaMapper, OperatorMapper

public interface DtoToEntityMapper<D,E>
Interface that defines the contract for mapping between DTOs and entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    getEntity(D dto)
    Maps a DTO to an entity.
  • Method Details

    • getEntity

      E getEntity(D dto) throws MappingException
      Maps a DTO to an entity.
      Parameters:
      dto - The DTO to map.
      Returns:
      The mapped entity.
      Throws:
      MappingException - If the mapping fails.