Joined: Tue Apr 21, 2015 5:39 pm Posts: 1
|
I have a Tree structure with a one-to-many relationship of children that are ordered via a list with an @OrderColumn("children_order"). When creating a tree with two children, envers is not writing audit records with the correct value for the children_order column. It is in fact entering 0 which causes an error when trying to rebuild the structure via AuditReader. Please see https://github.com/mwedgwood/hibernate-envers/blob/master/src/test/java/com/github/mwedgwood/EnversTest.java for full example. See auditTreeTest. If you look at the sql generated you will see that hibernate correctly generates update statements to fill in the children order on the base tree table while envers does not do the same for the tree_AUD table. Any ideas? Seems like a bug.
|
|