-->
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: Audit Trail with Interceptor (Collection dirty checking)
PostPosted: Thu Jul 10, 2014 1:53 am 
Newbie

Joined: Mon Mar 03, 2014 1:29 pm
Posts: 3
I used interceptor for tracking history of objects. When objects calls to update, onFlushDirty methods of interceptor is gives current-state and previous-state of property. In one to many relationship I used Set. Like I have Quotation object, the Quotation object has Set of quotation-items.

I tried to update quotation with some changes and delete one quotation-item from its set. I found previous-state and current-state of quotation-items is same in onFludhDirty.

I want to track changes of quotation-items from Quotation object.

Please help me. Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Audit Trail with Interceptor (Collection dirty checking)
PostPosted: Mon Jan 25, 2016 4:35 am 
Newbie

Joined: Thu Oct 05, 2006 3:26 am
Posts: 8
Is this bug related?
https://hibernate.atlassian.net/browse/HHH-10236

onFlushDirty should only be called for dirty entities, but it is called without updates with certain conditions. I think it is a bug.


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.