0 Replies Latest reply on Nov 2, 2017 7:25 AM by madiuq

    Append to revision?


      For performance reason we load data from an external database table by table. So first we load all instances of class A (parent) and persist them, then we load all instances of class B (child), which contains a many-to-one reference to class A. As both entities are audited, they get written to their respective audit tables, but with different revision numbers. If I now retrieve a revision of class A, using the AuditReader, the reference from class B to class A is broken, as the instances are in different revisions.


      So, when persisting class B, I would like to append the audit data to the revision of the associated instance of class A, i.e. re-use the revision number of that instance. Can this be done with Envers?