Interface IProfileMapper

All Superinterfaces:
GenericMapper<Profile,ProfileResponseDTO,ProfileRequestDTO>
All Known Implementing Classes:
ProfileMapperImpl

public interface IProfileMapper extends GenericMapper<Profile,ProfileResponseDTO,ProfileRequestDTO>
Mapper interface for converting between Profile entities and their corresponding request and response DTOs.

Extends the generic GenericMapper, inheriting methods for:

  • Turning a Profile entity into a ProfileResponseDTO.
  • Creating a Profile entity from a ProfileRequestDTO.
  • Converting collections of entities into lists of response DTOs.
  • Handling paginated entity-to-DTO transformations while preserving pagination metadata.
Implementations of this interface should focus solely on data transformation, keeping mapping logic consistent and centralized for maintainability across the application layers.
See Also: