public interface Assembler<F extends BaseModel,T extends BaseDto>
| Modifier and Type | Method and Description |
|---|---|
T |
assemble(F entity)
Assembles a DTO from the given entity.
|
void |
merge(T dto,
F entity)
Writes back the DTO properties to the entity.
|
org.hibernate.criterion.ProjectionList |
projection()
Creates a
ProjectionList for bulk queries of the DTO. |
T assemble(F entity) throws CillaServiceException
entity - Entity to convertCillaServiceExceptionvoid merge(T dto, F entity) throws CillaServiceException
dto - DTO to mergeentity - Entity to merge intoCillaServiceExceptionorg.hibernate.criterion.ProjectionList projection()
ProjectionList for bulk queries of the DTO.ProjectionListUnsupportedOperationException - if this assembler does not support projectionsCopyright © 2009–2016. All rights reserved.