-->
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: Does Envers really support ElementCollection?
PostPosted: Wed Nov 13, 2013 11:09 am 
Newbie

Joined: Wed Nov 13, 2013 10:55 am
Posts: 1
Hi!

I have a problem with Envers and Embedded Collections. The problem is that when I add two embeddable value objects to my entity in a single revision the history don't have a way to differ between the two value-objects, so it uses the entity-id to keep track of whats happend, and a NonUniqeObjectException is thrown. Shouldn't the database hold the key to the parent and perhaps a hashcode from the value-object to avoid this problem?

I found a couple of StackOverflow-questions that seems to be in the same subject.

http://stackoverflow.com/questions/16507596/auditing-elementcollection-embeddable-with-hibernate-envers
http://stackoverflow.com/questions/18607422/auditing-embeddable-elementcollection-with-hibernate-envers

Does Envers really support ElementCollection?

Thanks in advance


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.