0
votes

I am using Spring boot with JPA. I have two questions

  1. 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 don't have OrderLineItemsDao.

  2. All our Entities extend BaseEntity. It has the lastModifiedAt column which is annotated with @UpdateTimestamp which 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?