cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-2237) Issue with PK and FK generation separated from table creation
Date Mon, 20 Feb 2017 11:01:44 GMT

     [ 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)

Mime
View raw message