/** * @param dto * @return * @generated */ @Override public ClientDTO createClient(ClientDTO dto) { ClientEntity entity = ClientConverter.fullDTO2Entity(dto); persistence.create(entity); return ClientConverter.fullEntity2DTO(entity); }
/** * @param dto * @return * @generated */ @Override public ClientDTO updateClient(ClientDTO dto) { ClientEntity entity = persistence.update(ClientConverter.fullDTO2Entity(dto)); return ClientConverter.fullEntity2DTO(entity); }
/** * @param id * @return * @generated */ @Override public ClientDTO getClient(Long id) { return ClientConverter.fullEntity2DTO(persistence.find(id)); }