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
|
|