The data saved all ok, but I want if I had an already an already entity retrieval to change some of its data.
For example if
Retrieval existRetrieval=retrievalRepository.findByProductAndShelfAndDate(invoiceProduct.getProduct(),invoiceProduct.getShelf(), invoice.getDate()); (!=null)
...to make changes.
Although I have already the data:
when existRetrieval start, find that product is null, shelf is null, as a result, cannot be not null the exist retrieval.