ENTITY - the generic type of the entity objectDTO - the generic type of the DTO objectpublic interface GenericMapper<ENTITY,DTO>
GenericMapper maps dto objects to entities and back| Modifier and Type | Method and Description |
|---|---|
DTO |
toDto(ENTITY entity)
Maps the given entity object to a DTO object
|
List<DTO> |
toDtos(Collection<ENTITY> entities)
Maps the given collection of entity objects to a list of DTO objects
|
List<ENTITY> |
toEntities(Collection<DTO> dtos)
Maps the given collection of DTO objects to a list of entity objects
|
ENTITY |
toEntity(DTO dto)
Maps the given DTO object to a entity object
|
DTO toDto(ENTITY entity)
entity - the entity objectList<DTO> toDtos(Collection<ENTITY> entities)
entities - the collection of entities objectsList<ENTITY> toEntities(Collection<DTO> dtos)
dtos - the collection of DTO objectsCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.