AW: [OJB-developers] Roadmap from OJB -> ODMG API's
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-03-13 14:57:53
|
Hi Ranjan, > Hi -- > > Perhaps this is in the docs, but I haven't seen it: I've got a fairly > useful set of persistent objects using the OJB API. However, deletion > from collections (representing a 1:n mapping) isn't getting > persisted. According to the FAQ I should be using the ODMG > API instead > which will handle this. > > (First off, is this right?) > Yes. The PersistenceBroker does not track changes to Collections. You can do 2 things: 1. Use the ODMG Collections DListImpl etc. They do track such changes automatically. Of course you have to use ODMG Transactions then. 2. Implement your own mechanism that tracks changes to collections and uses the PersistenceBroker to persist these changes. (E.G. You might implement your own Collection Classes that track deletion of objects) Maybe this second option is easier to implement as you won't have to change so much of your existing code. HTH, Thomas > Has anyone done this readjustment? Any caveats? > > Thanks, > > Ranjan Bagchi > > > > > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers > |