Interface IRoleMapper

All Superinterfaces:
GenericMapper<Role,RoleResponseDTO,RoleRequestDTO>
All Known Implementing Classes:
RoleMapperImpl

public interface IRoleMapper extends GenericMapper<Role,RoleResponseDTO,RoleRequestDTO>
Mapper interface for converting between Role entities and their corresponding request and response DTOs.

Extends the generic GenericMapper, inheriting methods for:

  • Turning a Role entity into a RoleResponseDTO.
  • Creating a Role entity from a RoleRequestDTO.
  • 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: