[
https://issues.apache.org/jira/browse/CAY-1891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972847#comment-15972847
]
ASF GitHub Bot commented on CAY-1891:
-------------------------------------
GitHub user nismooooooo opened a pull request:
https://github.com/apache/cayenne/pull/200
CAY-1891 Add To-Many Warning to Cayenne Modeler
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nismooooooo/cayenne CAY-1891
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cayenne/pull/200.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #200
----
commit 5a42815c653a83559ff5d720b2e165f77f9304e4
Author: Anton Dreka <[email protected]>
Date: 2017-04-18T14:49:54Z
CAY-1891 Add To-Many / To-One Warnings to Cayenne Modeler
commit 1c69c88c960a3d8380104c2b0b8130d58817fc3c
Author: Anton Dreka <[email protected]>
Date: 2017-04-18T14:52:02Z
CAY-1891 Add To-Many / To-One Warnings to Cayenne Modeler
----
> Add To-Many / To-One Warnings to Cayenne Modeler
> ------------------------------------------------
>
> Key: CAY-1891
> URL: https://issues.apache.org/jira/browse/CAY-1891
> Project: Cayenne
> Issue Type: Improvement
> Components: Modeler
> Environment: All platforms, affects versions of the modeler.
> Reporter: Michael Gentry
> Priority: Minor
>
> 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_egoxqeyner7tdnz...@mail.gmail.com%3E
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)