-->
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: AutoFlush and SaveOrUpdate Events
PostPosted: Tue Apr 25, 2006 10:08 am 
Newbie

Joined: Tue Apr 25, 2006 10:02 am
Posts: 2
Hey folks,

I am using Hibernate 3.1.3 and have Problems with the AutoFlushEvents.

I get unwanted updates on my objects if I re-read them from the database. I defined a PostLoadEventListener that changes the objects directly after reading them from the database. If I do a re-read, the AutoFlushing of Hibernate writes them back into the DB. Actually am I using a SaveOrUpdateEventListener to modify the objects again before writing them to the DB. The AutoFlushEvent does not go over the SaveOrUpdateEvent to write the Objects to the DB, so my objects are wrong.

Now my Question:
Why is that so? And
How can I get the Instance to be saved from the AutoFlushEvent.

PS: I may not disable the AutoFlushing...

Greetz Mea


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.