Armin, I dit not see any identity based List. There are Maps (in the jarakarta-commons-collections for exemple) and a Set could be easily build on top of this map.
Maybe just inlining the contains function directly in the doDelete function, walking through the array should do the work. Guillaume -----Message d'origine----- De : Armin Waibel [mailto:[EMAIL PROTECTED] Envoy� : mercredi 11 f�vrier 2004 19:14 � : OJB Users List Objet : Re: Bug in doDelete with the markedForDelete list Hi Guillaume, Guillaume Nodet wrote: > Another way could be to use a specific Map that test an object equality with > a '==' instead of a 'equals'. agree, seems to be the smartest way to get around your problem. Do you know an object identity based ArrayList/List implementation? regards, Armin > Guillaume > > -----Message d'origine----- > De : Guillaume Nodet [mailto:[EMAIL PROTECTED] > Envoy� : mercredi 11 f�vrier 2004 12:22 > � : OJB > Objet : Bug in doDelete with the markedForDelete list > > > Hi Armin ! > > I've found a problem using objects instead of Identity in the > markedForDelete list of PersistenceBrokerImpl class. > Here is my problem: > > I want to delete an object A that contains a collection of B objects. > When i put 2 B objects that are equals in my collection, and > trying to delete the A objects, the markedForDelete.contains(obj) statement > returns true when trying to delete the second B object. > They are trully equals, but have different primary keys... > > Could this list use Identity instead of objects ? > > Regards, > Guillaume > > > --------------------------------------------------------------------- > 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] > > > --------------------------------------------------------------------- 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]
