Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1891

Add To-Many / To-One Warnings to Cayenne Modeler

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Modeler
    • None
    • All platforms, affects versions of the modeler.

    Description

      Cayenne Modeler should issue a warning when you have the To-Many checkbox checked on both sides of a relationship in the DbEntity section. When the checkbox is selected on both sides, which isn't a valid combination, Cayenne gets confused and can insert NULLs for FKs and orphan records.

      See: http://mail-archives.apache.org/mod_mbox/cayenne-dev/201311.mbox/%3CCAA-upzrZNG-OxN1dpTbLAqEx_tW26twkc%3DM0pwDQWNM%2Btzjg9g%40mail.gmail.com%3E

      Also, Cayenne Modeler should issue a warning when both sides of the relationship are to-one (assuming To-Dependent PK isn't checked).

      See: http://mail-archives.apache.org/mod_mbox/cayenne-dev/201311.mbox/%3CCAA-upzrNYock0PtkmT=5H7=ZktJhDST_EGoxQeYNer7TDNzkpQ@mail.gmail.com%3E

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            blacknext Michael Gentry

            Dates

              Created:
              Updated:

              Slack

                Issue deployment