Hi Gerhard, At first I'd like to thank You for the hints!
> Hi again, > > According to the docs, the auto-xy options should be left at their > defaults for ODMG to work correctly. I'm not sure how this really > affects things, but obviously something goes wrong with > auto-update=true. > > The remaining problem is probably solved by doing both a > zz.addOption(o1) *and* o1.setZertifikat(zz) (or similar). > > I guess it is arguable whether this should be necessary, but in my > view this makes sense, because otherwise the objects to store are > basically inconsistent, and the ODMG layer has to guess what to do. It > may seem obvious what to do when first inserting the objects, but > later if you say o1.setZertifkat(null) without zz.removeOption(o1), > the objects are in the same state, and it is not at all clear what the > intended behavior should be. > > In my object models I usually include o1.setZertifikat(this) in the > method zz.addOption(). > > Cheers, > Gerhard I could do that. But I thought this would work automatically when using the appropriate (This is also done in the examples/tests). Thanks, -Gunnar --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
