just to add : i've seen this before, but as i stop setting it back to the cmr it stopped cleaning it. I thought it was strange, but not a bug.
[EMAIL PROTECTED] wrote: > Bugs item #600810, was opened at 2002-08-27 09:24 > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=376685&aid=600810&group_id=22866 > > Category: JBossCMP > Group: v3.0 Rabbit Hole > >>Status: Open > > Resolution: Accepted > Priority: 5 > Submitted By: Bill Burke (patriot1burke) > Assigned to: Dain Sundstrom (dsundstrom) > Summary: using collection to set cmr clears it! > > Initial Comment: > Dain, this is Bill B..... > > If you have a one-many relationship and while adding to > the relationship you set the relationship thru the > collection then the entire relationship is cleared! > > i.e. > > Organization org = .....; > Collection gangsters = org.getGangsters(); > gangsters.add(anotherGangster); > org.setGangsters(gangsters); > > the relationship is totally empty after this. Are you > doing a collection.clear() before setting it??? What > does the spec say about this??? > > Thanks, > talk to you soon, > Bill > > ---------------------------------------------------------------------- > > >>Comment By: Dain Sundstrom (dsundstrom) > > Date: 2002-08-27 10:00 > > Message: > Logged In: YES > user_id=251431 > > Oops, accidently closed this one. > > ---------------------------------------------------------------------- > > Comment By: Dain Sundstrom (dsundstrom) > Date: 2002-08-27 09:48 > > Message: > Logged In: YES > user_id=251431 > > Wow definately a bug. I think no one found this, because > the last set is completely unnecessary. The collection you > are working on is live, so you don't need to set it again. > > ---------------------------------------------------------------------- > > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=376685&aid=600810&group_id=22866 > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > -- Emerson Cargnin - MSA SICREDI - Tel : 3358-4860 ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
