Hi again Henrik, > -----Original Message----- > From: Henrik Berg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 11, 2003 9:53 AM > To: [EMAIL PROTECTED] > Subject: Removing objects from collections...again > > > For some reason, suddenly the RemovalAwareCollection-stuff started > working again here... Have no idea what's happened, I hadn't looked > at this for some time, and then, today, everything seems to work just > fine.
We call this feature "telekinetic software update" (TM) :-) >Anyone else still having problems with RemovalAwareCollections? > > Now what I need, is some Collection-class that removes the removed > objects, but lets them stay in the database, just sets their foreign > keys to 0/null or something, so that they don't reappear in the > collection next time it loads from the database. > > Any possibility I could make this happen? Yes, that's possible. For example the ODMG collection DListImpl works in this way. It is also possible to simulate this with using a m:n mapping with an intermediary table. you just configure it so that only the entries from the intermediary table get deleted but not the refernced entries. Of course you can also use the trick to set the FK's to 0. cheers, Thomas > > -- > Henrik > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
