You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (Jira)" <ji...@apache.org> on 2019/09/14 08:28:00 UTC

[jira] [Created] (CAY-2619) "to-dep PK" related dbimport delta confuses the Modeler

Andrus Adamchik created CAY-2619:
------------------------------------

             Summary: "to-dep PK" related dbimport delta confuses the Modeler
                 Key: CAY-2619
                 URL: https://issues.apache.org/jira/browse/CAY-2619
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 4.1.B3
         Environment: CayenneModeler 4.1.B3-SNAPSHOT, Aug 23 build
            Reporter: Andrus Adamchik


I am using CayenneModeler 4.1, Aug 23 build. Scenario:

* Initial state: A model with a many-to-many join table (mapped itself as an ObjEntity). Join table has formal FKs and a compound PK, made from those FKs.
* I make change in the DB, adding a separate PK column. FKs remain, but they are no longer part of the pk
* Run dbimport
* On save, modeler shows validation for relationships to the join table, saying that "to-dep PK" is checked for columns that are not pks. I can't uncheck it in the modeler, as "to-dep PK" checkboxes are disabled. But saving seems to be done correctly (to-dep PK is unset)
* Reopening the project clears validation errors.





--
This message was sent by Atlassian Jira
(v8.3.2#803003)