-->
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.  [ 13 posts ] 
Author Message
 Post subject: Parameter previousState is null for onFlushDirty method
PostPosted: Tue May 22, 2007 5:10 pm 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Hi,


I have created a Simple Interceptor where I handle the onFlushDirty method call.

I am invoking saveOrUpdate method on session. And when onFlushDirty method on the Interceptor is invoked by the Hiberante, previousState parameter is null. I even tried by setting the attribute select-before-update="true" but without luck.

While going through the hibernate source code I figured out in both these cases Hibernate gets the databaseSnapshot but never send it to Interceptor.

Does anyone know why is the previousState null and are there any design considerations due to which they are not sending the values even though they have them for saveOrUpdate and select-before-update="true" cases.

If I make changes to the Hibernate source code so that they pass the databaseSnapshot to Interceptor as previousState, will it break something?

Regards,
Mahen


Top
 Profile  
 
 Post subject: Please help
PostPosted: Wed May 23, 2007 9:40 am 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Somebody please help!!!


Top
 Profile  
 
 Post subject: Re: Please help
PostPosted: Wed May 23, 2007 1:38 pm 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
kunwarmahen wrote:
Somebody please help!!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 24, 2007 9:23 am 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Sticky


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 11:49 am 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Sticky


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 9:52 am 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Sticky


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 5:01 pm 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Sticky


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 05, 2007 9:08 am 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Sticky


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 11:24 am 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Sticky

Regards,
Mahendra
http://www.discoverabout.net


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 03, 2007 3:35 pm 
Beginner
Beginner

Joined: Thu Apr 19, 2007 9:52 am
Posts: 27
Sticky

Mahen
http://www.discoverabout.net

_________________
Regards,
Mahen
http://www.discoverabout.net
http://funnfacts.discoverabout.net


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 1:28 am 
Regular
Regular

Joined: Mon Apr 02, 2007 3:54 am
Posts: 67
Location: Hyderabad
can u send ur code having relevant information ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 6:19 am 
Newbie

Joined: Mon Sep 13, 2004 8:20 am
Posts: 7
Location: Poland
Most probably You work with detached objects and afer reassociation there is no previous state. Previous state is available only within the same session


Top
 Profile  
 
 Post subject: same problem here
PostPosted: Mon Aug 13, 2007 5:05 am 
Newbie

Joined: Mon Apr 30, 2007 12:27 pm
Posts: 18
hi! im facing the same problem that you had, and I am kind of stuck.

Did you get any solution?

thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 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.