RE: Setting objects across datanodes

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Dec 10 2004 - 09:19:39 EST

  • Next message: Gentry, Michael \(Contractor\): "RE: Is it possible to compare entity keys in an object query?"

    Mike,

    Mos types of flattened relationships are read-only:

    http://objectstyle.org/cayenne/modelerguide/modeling-object-layer/flattenedrel.html

    Only many-to-many with single join a read/write. This is the reason why
    there is no mutator methods generated.

    Andrus

    > Sorry, would help if I attached the files.
    >
    > Mike
    >
    > Hi Group,
    > I have a small issue that I'm pressuming is due to the fact that I'm
    > crossing a datanode boundary again. I have a Preference,
    > PreferenceProject table in one datanode, and Project table in another
    > datanode. PreferenceProject is a join table of the two. In my modeler
    > I flatten the relationship, so I have preference->getProject and
    > project->getPreference, but I don't get the set functions, is there any
    > reason for this? This is a one-to-one relationship so they are set not
    > addTo. When I create a similar relationship in the same datanode, look
    > at disicpline, disciplineHierarchy it works like it is suppose to.
    >
    > Am I doing something wrong? Any hint would be nice. Attached are my
    > model files.
    >
    > Cheers
    > Mike



    This archive was generated by hypermail 2.0.0 : Fri Dec 10 2004 - 09:19:41 EST