-->
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: Tracking changes in update in an interceptor
PostPosted: Fri Dec 12, 2008 9:57 pm 
Newbie

Joined: Fri Jun 06, 2008 2:03 pm
Posts: 9
Hi,

I am using Spring 1.2 with Hibernate 3.0. I am using Interceptor to detect changes in entity attributes between two revisions for Insert, Update, and Delete operations.

The changes will be persisted to table.

I have extended EmptyInterceptor and have overridden for update operation the onFlushDirty method. My interceptor was injected onto spring's localsessionfactorybean and is invoked as expected.

What I find that is that in my onFlushDirty method, myCurrentState argument holds the most recent values but the myPreviousState argument holds null.

I don't know how to get both my old values and new values for a persistent operation. Can anyone please help?

Thanks,


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.