Re: Unable to generate addTo... and removeFrom... methods

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Aug 31 2005 - 12:34:31 EDT

  • Next message: Mike Kienenberger: "Re: Unable to generate addTo... and removeFrom... methods"

    Sorry, the second suspect relationship is this:

    > <db-relationship name="announcementList"
    > source="ANNOUNCEMENT__CONTENT" target="ANNOUNCEMENT" toMany="true">
    > <db-attribute-pair source="ANNOUNCEMENT_ID"
    > target="ANNOUNCEMENT_ID"/>
    > </db-relationship>

    On Aug 31, 2005, at 12:31 PM, Andrus Adamchik wrote:

    > Mike, the reason for that is that relationship is treated as read-
    > only. Maybe because these two relationships FROM a join table are
    > marked as to-many while they should be to-one?
    >
    > Andrus
    >
    >
    >
    >> <db-relationship name="contentList" source="ANNOUNCEMENT__CONTENT"
    >> target="CONTENT" toMany="true">
    >> <db-attribute-pair source="CONTENT_ID" target="CONTENT_ID"/>
    >> </db-relationship>
    >>
    >> <db-relationship name="announcementList"
    >> source="ANNOUNCEMENT__VIEWPOINT" target="ANNOUNCEMENT" toMany="true">
    >> <db-attribute-pair source="ANNOUNCEMENT_ID"
    >> target="ANNOUNCEMENT_ID"/>
    >> </db-relationship>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Aug 31 2005 - 12:34:33 EDT