E - entity typeD - dto typepublic interface Mapper<E,D> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Set<E> |
mapDtosToEntities(Collection<D> ds)
Maps a collection of DTOs to a collection of entities.
|
D |
mapDtoToDto(D d)
Clones a DTO to a new DTO.
|
E |
mapDtoToEntity(D d)
Maps a DTO to an entity.
|
Set<D> |
mapEntitiesToDtos(Collection<E> es,
boolean showInternal)
Maps a collection of entities to a collection of DTOs.
|
D |
mapEntityToDto(E e,
boolean showInternal)
Maps an entity to a DTO.
|
E |
mapEntityToEntity(E e)
Clones an entity to a new entity.
|
D mapEntityToDto(E e, boolean showInternal)
e - entityshowInternal - true if internal fields should be included in the DTO, false otherwiseE mapEntityToEntity(E e)
e - entitySet<D> mapEntitiesToDtos(Collection<E> es, boolean showInternal)
es - entitiesshowInternal - true if internal fields should be included in the DTO, false otherwiseSet<E> mapDtosToEntities(Collection<D> ds)
ds - dtosCopyright © 2016 DNAstack. All rights reserved.