| I am actually seeing two problems with this test case, depending on how the user initializes this relationship.
- NULL not allowed for column "B_ID"
This happens when following the specified test case, A is persisted with an explicit value of null for B.
- Referential integrity constraint violation: "PUBLIC.A_B_AUD FOREIGN KEY(A_ID, REV) REFERENCES PUBLIC.A_AUD(ID, REV) (1, 1)
This happens when the relationship is set between A and B. It appears that Envers attempts to populate the A_B_AUD table before having populated the A_AUD table; thus creating this constraint violation with the join table.
|