Hello!
I am trying to track every modification that is made to an entity, including its related objects. The goal is to have a "last modification" attribute in a father object updated whenever such object, a child or even a grand child of his is updated.
So far i have tried interceptors (i can intercept any modification i want, but i cant modify the father's attribute when the intercepted change is in a related object) and lifecycle (with no success at all, still can't get it right).
Before continuing with the research i would like to ask everyone which of the two afforementioned approaches is the right way to face the problem (or if there is a completely different one i should try) is in order to direct my testing in the right direction.
Thanks in advance, cheers! Rafael
|