use of com.rafaelvieira.letmebuy.dto.ProductDTO in project letmebuy by rafaelrok.
the class ProductService method save.
@Transactional
public ProductDTO save(ProductDTO dto) {
Product entity = new Product();
copyDtoToEntity(dto, entity);
entity = productRepo.save(entity);
return new ProductDTO(entity);
}
Aggregations