use of com.inspiresoftware.lib.dto.geda.assembler.Assembler in project trainning by fernandotomasio.
the class TrainningServiceSimpleImpl method assemblyDTO.
private void assemblyDTO(Object dto, Object model) {
final Assembler assembler = DTOAssembler.newAssembler(dto.getClass(), model.getClass());
assembler.assembleDto(dto, model, null, null);
}
use of com.inspiresoftware.lib.dto.geda.assembler.Assembler in project trainning by fernandotomasio.
the class TrainningServiceSimpleImpl method assemblyDTO.
private void assemblyDTO(Collection dto, Collection model, Class<?> dtoClass, Class<?> modelClass) {
final Assembler assembler = DTOAssembler.newAssembler(dtoClass, modelClass);
assembler.assembleDtos(dto, model, null, null);
}
use of com.inspiresoftware.lib.dto.geda.assembler.Assembler in project trainning by fernandotomasio.
the class Testes method main.
public static void main(String[] args) {
Estado estado = new Estado();
estado.setId(4L);
estado.setSigla("RJ");
estado.setNome("Rio de Janeiro");
EstadoDTO dto = new EstadoDTO();
Assembler asm = DTOAssembler.newAssembler(EstadoDTO.class, Estado.class);
asm.assembleDto(dto, asm, null, null);
System.out.println("");
}
use of com.inspiresoftware.lib.dto.geda.assembler.Assembler in project trainning by fernandotomasio.
the class TrainningServiceSimpleImpl method assemblyEntity.
private void assemblyEntity(Object dto, Object model) {
final Assembler assembler = DTOAssembler.newAssembler(dto.getClass(), model.getClass());
assembler.assembleEntity(dto, model, null, null);
}
Aggregations