see attached test case When using an audited entity collection of an embeddable: {code} @Audited public class Parent { // ... @ElementCollection @CollectionTable(name = "items", joinColumns = @JoinColumn(name = "PRODUCT_ID")) @OrderColumn(name = "ORDER_COL") @Audited private List<Item> items = new ArrayList<Item>(); }
@Embeddable @Audited public class Item { // ... @ManyToOne @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) private Type type; } {code}
This causes a NullPointerException to occur when fetching a revision of the `Parent` entity when the embeddable `Item` contains a non-null reference to `Type`. |
|