-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Envers Getting Previous Object
PostPosted: Tue Apr 19, 2016 6:34 am 
Newbie

Joined: Tue Apr 19, 2016 6:24 am
Posts: 5
[Very Urgent]

Hi,

I am new to Hibernate Envers, so might ask some silly question.
I am using Hibernate Envers '4.3.6.Final' for auditing purpose.

I know there is difference between the Hibernate object and Audit Object.
Using AuditReader, i can get the audit object, which is different in structure by the actual table object.
Now when i do a entityManager.merge(auditObject), and a commit(), the actual object gets modified with the previous values.

Is there any way, so that i can get the actual previous state of the object without committing the changes.

This is needed in order to check the overall change in the Hierarchy of the actual object.

Any lead would be very useful.

Thanks in advance.

Keshavendra P S


Top
 Profile  
 
 Post subject: Re: Hibernate Envers Getting Previous Object
PostPosted: Tue Apr 19, 2016 7:28 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
You need to share some code because otherwise it's hard to tell what's going on in your app.


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

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.