Hi All,
Good to be a part of this community.
We have a springboot application where many records are getting processed from the parent repo every min and the child entities and super child entities values also gets changed with every ParentRepo.save() call . But the thing is we don't want the DB call to happen in case of no updates wrt to the previous values stored in the DB.
I believe we can selectively use the cascade types on the child entity delcaration like excludinf cascade type merge which can exclude the updates while Cascade happens from parent . And then when we want to update when any changes are getting made that time we can directly update using childRepo.save().
Is there any better way of doing this.
Would love to hear from you all about your opinions
#expert-java-talk #modernjava-discussion #java-news-and-changes