Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] DeleteAllQuery executed again and again

Hi,

I encountered a strange behaviour.

First I start a transaction, execute a DeleteAllQuery and commit.
Then I start a new transaction, execute a merge and commit.

But the DeleteAllQuery is still executed in the second transaction, which is fatal.

So I had a look into the sources and found, that the UnitOfWorkImpl.deferredModifyAllQueries is not emptied after the commit.
Because the UnitOfWork-object is reused by the EntityManager the DeleteAllQuery is performed in every following transaction.


Regards,
Sascha Broich

-- 
TSA - Teleport Sachsen-Anhalt Service GmbH
Delitzscher Straße 70, 06112 Halle
Phone: +49 39203 8 2524 
Email: Sascha.Broich@xxxxxx

Firmensitz: Steinfeldstraße 5, D-39179 Barleben
Geschäftsführer: Marco Langhof
Amtsgericht: Stendal HRB 6388
http://www.tsa.de
Am I something missing or is this a bug in Eclipselink 1.1.x?




Back to the top