I am using Spring boot with JPA. I have two questions
I have two entities Order and OrderLineItems. I am saving the Order entity using
orderDao.save(), Which saves line items as well. When I update line-items, only the line-items version is getting updated. I want to update the version of the parent. I don't have OrderLineItemsDao.All our Entities extend BaseEntity. It has the
lastModifiedAtcolumn which is annotated with@UpdateTimestampwhich is making all the records dirty. I am planning to remove it, is it fine and update it manually? Or do we have any other way to stop the unnecessary updates to DB?