You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Andrey Chernyh <ch...@plesk.com> on 2002/12/18 15:20:07 UTC

Problem with object deletion

Hello!

I have a problem with object deletion in OJB 0.9.5
Object X contains Y, 1:1 mapping

I call:
db.deletePersistent( X );

OJB wants to delete object X, it detects, that it should delete object
Y too as dependent.
object Y is not yet materialize, OJB materializes it, AND!!! After
materialization it registers it in current transaction.

ObjectEnvelopeTable.commit():
// 3. commit objects.
            iter = mvOrderOfIds.iterator();
            while (iter.hasNext())

And here iterator causes ConcurrentModificationException !!!


How can I solve this problem?
It means that I cannot remove objects with unmaterializd
references.... :(
Thank you.
 
Best regards,
Andrey Chernyh<ch...@plesk.com>
Plesk Inc.