@Component public class CommentAssembler extends AbstractAssembler<Comment,CommentDto>
| Constructor and Description |
|---|
CommentAssembler() |
| Modifier and Type | Method and Description |
|---|---|
CommentDto |
assemble(Comment entity)
Assembles a DTO from the given entity.
|
void |
merge(CommentDto dto,
Comment entity)
Writes back the DTO properties to the entity.
|
org.hibernate.criterion.ProjectionList |
projection()
Creates a
ProjectionList for bulk queries of the DTO. |
bulkAssemblepublic CommentAssembler()
public CommentDto assemble(Comment entity) throws CillaServiceException
Assemblerentity - Entity to convertCillaServiceExceptionpublic void merge(CommentDto dto, Comment entity) 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<Comment,CommentDto>merge in class AbstractAssembler<Comment,CommentDto>dto - DTO to mergeentity - 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<Comment,CommentDto>projection in class AbstractAssembler<Comment,CommentDto>ProjectionListCopyright © 2009–2016. All rights reserved.