com.eurodyn.qlack.fuse.cm.mapper.CMBaseMapper Maven / Gradle / Ivy
package com.eurodyn.qlack.fuse.cm.mapper;
import java.util.List;
public interface CMBaseMapper {
/**
* Maps an entity to a DTO.
*
* @param entity the source entity
* @return the mapped DTO
*/
D mapToDTO(E entity);
/**
* Maps a list of entities to a list of DTO's.
*
* @param entity the source entities list
* @return the mapped list of DTO's
*/
List mapToDTO(List entity);
/**
* Maps a DTO to an entity.
*
* @param dto the source DTO
* @return the mapped entity
*/
E mapToEntity(D dto);
/**
* Maps a list of DTO's to a list of entities.
*
* @param dto the source DTO's list
* @return the mapped list of entities
*/
List mapToEntity(List dto);
}