Re: [jira] Created: (CAY-1000) Duplicate items in list.

From: Mike Kienenberger (mkienen..mail.com)
Date: Wed Mar 05 2008 - 11:07:56 EST

  • Next message: Kevin Menard: "Re: [jira] Created: (CAY-1000) Duplicate items in list."

    What happens if you call

      painting.setArtist(artist);
      painting.setArtist(artist);

    If that doesn't give the same results as

      artist.addToPaintingArray(painting);
      artist.addToPaintingArray(painting);

    then I would say it's a bug just due to the inconsistency.

    Since we're not working with only abstract list concepts here, but are
    using lists to model relationships, my opinion would be that having
    the same object show up in the relationship list twice just because
    you identified the relationship twice is a bug.

    For what use case would having the object show up twice be desired behavior?

    On Wed, Mar 5, 2008 at 10:43 AM, Andrus Adamchik <andru..bjectstyle.org> wrote:
    >
    > On Mar 5, 2008, at 5:39 PM, Kevin Menard (JIRA) wrote:
    >
    > > However, it is fairly trivial to show that a relationship mapped as
    > > a List can hold a duplicate.
    >
    > But the question then "is this a bug"? I don't think it is.
    >
    > Andrus
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Mar 05 2008 - 11:08:31 EST