-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
Hello.
I have a problem with envers when an audited table has a tree structure.
When I insert a row without any parent it inserts correctly to an audit table with revision type 0 (Added).
Then I try to insert a child row with an ID pointing to parent row (by creating an empty entity with only ID set, it works normallny with nHibernate).
The result is that Envers tries to insert an audit table row with with revision type 1 (Modified) that corresponds to the parent row with all the fields set to null...
It's very strange, but when I comment out the HasMany mapping it works ok.
I have made a sample project to show that behavior, it crashes because one of the fields is set to be not null.
Metadata
Metadata
Assignees
Labels
No labels