-->
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: Interceptor calls during session.isDirty()
PostPosted: Fri May 14, 2004 9:38 am 
Newbie

Joined: Tue Nov 25, 2003 12:26 pm
Posts: 12
Why is the inteceptor method onFlushDirty() called when session.isDirty() is invoked?

It causes the code in the inteceptor to run twice, once when I check to see if the session is dirty and once when I flush the session.

I'm using version 2.1.4 from cvs.

Here is the strace showing how the method is called.

Code:
java.lang.Exception: Show stack trace
   at MyIntercepter.onFlushDirty(MyIntercepter.java:64)
   at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2528)
   at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2447)
   at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2249)
   at net.sf.hibernate.impl.SessionImpl.isDirty(SessionImpl.java:2311)
   at PersistenceManager.commit(PersistenceManager.java:318)
   .....

_________________
Arthur Fitt


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.