AppSensei
AppSensei

Reputation: 8400

Auditing Multiple Child Tables using Envers

Suppose I have Vechicle, Car, Person, Key Entities.

Vechicles has a list of Cars. Car have a List of Persons. Person has a ManytoOne relationship to Key.

So, Can I access the data in the Key table, if I call this method?

    VechicleVO vehicle = findAuditByRevision("1", 210);

Upvotes: 0

Views: 424

Answers (1)

Alexander Fedyukov
Alexander Fedyukov

Reputation: 974

Yes, you can if Key have @Audited annotations and all needed collection fields (in Car, Person etc.) have annotation too.

Upvotes: 1

Related Questions