Code:
@Entity
@Audited
public class Parent {
...
@ManyToMany(fetch = FetchType.EAGER)
private List<Child> children;
...
}
@Entity
@Audited
public class Child {
...
}
Revisions are triggered via a @transactional method that calls:
Code:
parent.getChildren().addAll(childrenObjects);
Just to reiterate, a table Parent_Child_AUD is created and populated with data when the above action happens. However, say it creates a revision with revision number 47 (parent and children in the joining table all have the same number), upon retrieval of revision 47, the list of children is always empty.
Thank you for any assistance