@Component public class HeaderAssembler extends AbstractAssembler<Header,HeaderDto>
| Constructor and Description | 
|---|
HeaderAssembler()  | 
| Modifier and Type | Method and Description | 
|---|---|
HeaderDto | 
assemble(Header entity)
Assembles a DTO from the given entity. 
 | 
void | 
merge(HeaderDto dto,
     Header header)
Writes back the DTO properties to the entity. 
 | 
org.hibernate.criterion.ProjectionList | 
projection()
Creates a  
ProjectionList for bulk queries of the DTO. | 
bulkAssemblepublic HeaderAssembler()
public HeaderDto assemble(Header entity) throws CillaServiceException
Assemblerentity - Entity to convertCillaServiceExceptionpublic void merge(HeaderDto dto, Header header) throws CillaServiceException
AbstractAssemblerIf the DTO was created from a persisted entity, this implementation makes sure that it is merged with that entity again.
merge in interface Assembler<Header,HeaderDto>merge in class AbstractAssembler<Header,HeaderDto>dto - DTO to mergeheader - Entity to merge intoCillaServiceExceptionpublic org.hibernate.criterion.ProjectionList projection()
AbstractAssemblerProjectionList for bulk queries of the DTO.
 
 The default implementation throws an UnsupportedOperationException.
projection in interface Assembler<Header,HeaderDto>projection in class AbstractAssembler<Header,HeaderDto>ProjectionListCopyright © 2009–2016. All rights reserved.