Spring JPA Auditing is updating all child entities LastModifiedDate to current date in one to many even if nothing has changed in the child entity

197 views Asked by At

I have a Parent entity that has 10 child entities in one to many. While updating parent all the child entitie's LastModifiedDate is getting updated to current date. Is this expected behavior? How does Spring JPA Auditing knows entity has been modified, does it compares field by field?

0

There are 0 answers