-->
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: Hibernate 3.6.10 Envers: Find root entity
PostPosted: Mon Oct 14, 2013 5:11 am 
Newbie

Joined: Mon Oct 14, 2013 4:34 am
Posts: 1
Hello everybody,

I'm using Hibernate 3.6.10 and Envers to persist a complex datamodel with revisions. Everything works fine and I also track the entity names and ids modified during a revision in an extra table/entity (see https://docs.jboss.org/hibernate/envers/3.6/reference/en-US/html/revisionlog.html). My datamodel has a root entity and all other entities are related to this root entity. For Example: Entity A has a 0..n relationship to B and B has a 0..1 relationship to entity C.

My problem is, that I can see a change in entity C in a revision, but I'm not able to get the id of entity A which is influenced by the changes in entity C in this particular revision. Is there an standard way to do this? I could create a join-query to find entity A on base of the id of entity C, but in this case I would be forced to create seperate queries for a lot of entities.

Thanks,
Christian


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.