-->
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.  [ 3 posts ] 
Author Message
 Post subject: Interceptor onFlushDirty previousState with autoflush
PostPosted: Fri Sep 12, 2008 5:24 am 
Newbie

Joined: Fri Mar 14, 2008 4:20 am
Posts: 17
Hi all,

I have a question about the previousState argument of onFlushDirty() of a hibernate interceptor when flushmode is set to auto:

Does previousState contain the state of the entity-properties, when the object was initially loaded from the database within the current session or does it contain the state since the last update (autoflush-event)?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2008 8:23 am 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
Probably the state since the lastFlush - since at that moment changes have already be sent to the database...

_________________
If you found my post helpful, please rate it! Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2008 10:55 am 
Newbie

Joined: Fri Mar 14, 2008 4:20 am
Posts: 17
Can anyone confirm this? I have the impression that previousState contains the state-object of the initial database load.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.