-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Envers @OneToMany + @OrderColumn issue
PostPosted: Tue Apr 21, 2015 5:44 pm 
Newbie

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.