[ 
https://issues.apache.org/jira/browse/CAY-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Timofeev closed CAY-2458.
--------------------------------
    Resolution: Not A Problem
      Assignee: Nikita Timofeev

Cayenne unlike DB has bi-directional relationships. DB only have FK concept so 
we can't delete anything in DB when to-many part of relationship is removed.

> Migrate DB Schema: Generated SQL is empty in some cases
> -------------------------------------------------------
>
>                 Key: CAY-2458
>                 URL: https://issues.apache.org/jira/browse/CAY-2458
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>         Environment: OS X
>            Reporter: Yana
>            Assignee: Nikita Timofeev
>            Priority: Minor
>
> *Steps:*
> 1. Reverse engineer a database with several tables, and relationships (to 
> one, and to many)
> 2. Open dbEntity that has 'to many' relationship and delete relationship
> 3. Open Migrate DB Schema, connect to db that was reverse engineered
> 4. Select operation (To DB -> Drop FK)
> 5. Open Generated SQL
> -> blank page is displayed
> *Expected result:* sql query to delete FK
> *note: *if user removes relationship 'to one' -> sql query is displayed



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to