hi,
we have a strange problem with hibernate 3.5.6.
the following code sometimes issues an UPDATE statement instead of the expected DELETE statement:
Code:
...
BuBcg_Verdichten verdichtung = bag.getVerdichtungen()[i];
session.lock(verdichtung, LockMode.UPGRADE_NOWAIT); // verhindert mehrere Posten aus der gleichen Verdichten Row
... do some stuff ...
session.delete(verdichtung);
...
after the delete an implicit flush is done by reading other data.
because the problem occurs randomly, we have no testcase yet.
i would like to know:
a.) if it's possible that the session can mix up (optimize) update and delete
b.) if someone else has come accross this problem
thanks
jakob
jakob