Re: storing objects
Armin Waibel <[email protected]> Wed, 12 Sep 2007 13:16:56 +0200
| Newsgroups | gmane.comp.jakarta.ojb.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Hans, Hans Novak wrote: > Hi, > > i am not shure, but is ist correct when i have an object, witch is a > tree of some other objects (colletions) and i delete a part of the tree > and then store the hole object (tree) - in the database the deleted > object will also be deleted ? > > Everything works fine, when i store or update the object, but not when i > delete. > The deleted part of the object will not be deleted in the database. I > can remove it by hand, when i run a remove.object (the part of the > tree) and then store the (changed) tree. > > Is this normal ? It's how OJB currently work. But I agree this is not the behavior a user expects when using a "removal aware" collection and above all the odmg-api implementation detects the removed/orphan objects and delete them. OJB (PB-api) ignore the objects detected by the removal aware collection on delete of the main object. I will have a look at this. regards, Armin > > > Hans > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >