Re: AW: [OJB-developers] Roadmap from OJB -> ODMG API's
Brought to you by:
thma
From: Ranjan B. <ran...@fr...> - 2002-03-13 15:04:22
|
Thomas, Yes -- the 2nd option (custom collection classes) is by far the prefered method. Is DList a good example, or should I look elsewhere? Thanks for the quick response, Ranjan On Wed, 13 Mar 2002, Mahler Thomas wrote: > 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 > > > > |