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
|