Re: Flattened relationships are read-only?

From: Jim Menard (jim..o.com)
Date: Wed Dec 17 2003 - 13:15:30 EST

  • Next message: Jim Menard: "Relationship frustration"

    > Exception in thread "main"
    > org.objectstyle.cayenne.CayenneRuntimeException: [v.1.0.4 December 14
    > 2003] Cannot modify (add to) the read-only relationship addresses
    >
    > What am I doing wrong?

    I hate to respond to my own query, but it's right there in the
    documentation: "Most of the possible combinations are read only. One
    particularly useful combination is read/write. It is many-to-many (n:m)
    relationships mentioned above."

    Darn. Just because this is a one-to-many relationship (each member can
    have many addresses, but each addresses is associated with only one
    member), now I have to explicitly deal with MemberAddress objects. Foo.

    Jim

    -- 
    Jim Menard, jim..o.com, http://www.io.com/~jimm/
    "You might do well to heed the bumper sticker on a laser I had once:
    'do not look into laser with remaining eye.'" -- Daniel E. Macks
    



    This archive was generated by hypermail 2.0.0 : Wed Dec 17 2003 - 13:15:29 EST