You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2017/02/20 11:01:44 UTC
[jira] [Closed] (CAY-2237) Issue with PK and FK generation
separated from table creation
[ https://issues.apache.org/jira/browse/CAY-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikita Timofeev closed CAY-2237.
--------------------------------
Resolution: Won't Fix
It's intended behavior of schema generation. "Create FK Support" checkbox has effect only in pair with "Create Tables" checked.
The idea I think is that schema generation should be simple and all complex scenarios should be done with Db Migration.
> Issue with PK and FK generation separated from table creation
> -------------------------------------------------------------
>
> Key: CAY-2237
> URL: https://issues.apache.org/jira/browse/CAY-2237
> Project: Cayenne
> Issue Type: Bug
> Components: Modeler
> Affects Versions: 4.0.M5
> Reporter: ana benko
> Assignee: Nikita Timofeev
>
> 1. Create db schema in Modeler (Entities and Relationships)
> 2. Run Generate DB Schema
> 3. Select only 'Create Tables' ckeckbox (note: empty schema already exists in database). Run. Verify results in database
> -> all tables are created
> 4. Run Generate DB Schema once more
> 5. Now select only Create FK Support and Create Primary Key Support. Run. Verify results in database
> -> FK and PK are not created
> note: select all 3 cheboxes (create tables, FK and PK) in Generate DB Schema -> FKs and PKs are created successfully.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)