-->
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: Ideas on Envers supporting a "Timemachine" mode
PostPosted: Tue Feb 25, 2014 11:23 am 
Newbie

Joined: Tue Dec 10, 2013 10:29 am
Posts: 3
Location: Freiburg, Germany
Consider the following entities and their relationship:
EntityA -> EntityB -> EntityC where "->" means reference to.

Now, EntityA and EntityC are configured to be @Audited but EntityB is not.

When I load a historic state of EntityA via the AuditReader, the historic instance of EntityA has a reference to EntityB in its current state (because EntityB is not audited). However, this EntityB references EntityC in its current state and not in the state as it was at the revision of the loaded EntityA.

So my idea is, that envers should support a "timemachine" mode, where I specify a revision and all entities are resolved at that revision. For not audited entities (like EntityB in the example), the current state is taken, but references from not audited entities to audited entities are set to the correct revision.

Has anyone considered a similar usecase and maybe tried to implement such a feature? Any other thoughts for such a feature, good or bad? Can anyone give directions how to implement such a feature?

Thanks,
Felix


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.