Interface IUserMapper

All Superinterfaces:
GenericMapper<User,UserResponseDTO,UserRequestDTO>
All Known Implementing Classes:
UserMapperImpl

public interface IUserMapper extends GenericMapper<User,UserResponseDTO,UserRequestDTO>
Mapper interface for converting between User entities and their corresponding request and response DTOs.

Extends the generic GenericMapper, inheriting methods for:

  • Turning a User entity into a UserResponseDTO.
  • Creating a User entity from a UserRequestDTO.
  • 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: