-
1. Re: Auditing changes in related objects
adamw Jun 2, 2010 1:30 AM (in response to vipavel)If a child changes, an entry is created in the audit tables corresponding to the child entity. There are no entries for the parent. However, the entries in the audit tables do not contain any "hard links".
If you now read a child at revision X, and request the parent (e.g. child.getParent()), the parent entity will be read at revision X as well, through a proxy.
Adam
-
2. Re: Auditing changes in related objects
vipavel Jun 2, 2010 2:05 AM (in response to adamw)Thanks for the reply.
Let's say I have a label field that will be common for all the objects and will be updated when I save the whole structure.
In this case what is the best way to get the tree from the "history" tables by this field (kind of revert operation)?
-
3. Re: Auditing changes in related objects
adamw Jun 4, 2010 6:01 AM (in response to vipavel)I don't quite understand ... you can create a query for revisions looking for a specific value of the label field, and getting revision numbers back.
And then query for objects at that revisions.
Adam
-
4. Re: Auditing changes in related objects
vipavel Jun 29, 2010 3:50 AM (in response to adamw)Thank you Adam
Sorry it took so long to post, was busy on other project