-->
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: Invoke of onFlushDirty caused by Session.isDirty
PostPosted: Wed Aug 04, 2004 6:29 am 
Newbie

Joined: Wed Dec 17, 2003 10:05 am
Posts: 4
Location: Kaarst - Germany
Hi all,

I have an interceptor-class for audit-logging. This works very well.
Today I refactored some code and I inserted the following statement.

Just for my understanding - is it the normal behaviour that a call
getSession().isDirty() do cause an invocation of the interceptor
method onFlushDirty() ? I thought that a flush() is needed to
get into this interceptor-method? Is it a bug?

if ( getSession().isDirty() )
{
getSession().flush();
}

This code produces two calls on onFlushDirty ... ( Hibernate 2.1.4 )

Thanx
Tom


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.