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.  [ 4 posts ] 
Author Message
 Post subject: Proble with OnFlushDirty of IInterceptor
PostPosted: Wed May 10, 2006 10:40 am 
Newbie

Joined: Fri Jan 13, 2006 10:20 am
Posts: 7
Hi guys.

I'm using a Interceptor Interface to find objects that are changed in my session.
I try those objects using OnFlushDirty method.
I want check the previousState parameter to find what property are really changed, but i can not make this because the previousState parameter is null.

Someone knows why?

Bye, gianp


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 13, 2007 5:46 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  
 
 Post subject:
PostPosted: Mon Aug 13, 2007 9:55 am 
Beginner
Beginner

Joined: Tue Jul 10, 2007 5:27 am
Posts: 34
Location: Belgium
is previousState also null in the OnFindDirty method?

also, if your objects have been disconnected from a session, and then attached to a new session, nhibernate will not have any knowlegde of the previous state of the object so that could also explain why previousState is null

_________________
Davy Brion
http://ralinx.wordpress.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 27, 2007 3:11 am 
Newbie

Joined: Mon Aug 27, 2007 2:43 am
Posts: 8
Are you using session.merge(..)? session.update(..) does not populate the previous state.


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