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: postFlush method firing more often than documented?
PostPosted: Fri Oct 07, 2005 12:33 pm 
Beginner
Beginner

Joined: Mon Sep 27, 2004 4:28 pm
Posts: 44
Version 3.0

I was hoping to use the postFlush interceptor method, whose documentation reads:

Called after a flush that actually ends in execution of the SQL statements required to synchronize in-memory state with the database.


What I'm seeing, however, is that this method will be called even in the following case:

User u = (User) session.get(User.class, id);
session.update(u);

So even when no SQL statements are issued, I'm getting the postFlush. Is this a bug? Did the behavior of this method intentionally change at some point?

Thank you in advance.

Phill


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.