You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Ari Maniatis (JIRA)" <ji...@apache.org> on 2010/01/06 12:24:54 UTC

[jira] Closed: (CAY-199) Multiple links to a multi-attribute pk table do not get imported correctly

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

Ari Maniatis closed CAY-199.
----------------------------

    Resolution: Cannot Reproduce

Closed through lack of response from reporter.

> Multiple links to a multi-attribute pk table do not get imported correctly
> --------------------------------------------------------------------------
>
>                 Key: CAY-199
>                 URL: https://issues.apache.org/jira/browse/CAY-199
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 1.1 [LEGACY]
>         Environment: Windows XP Professional. DB2 8.1
>            Reporter: Derek Rendall
>            Assignee: Andrus Adamchik
>         Attachments: TestTableDB2.sql, UntitledMap.map.xml
>
>
> Named changed to protect identities :-)
> I have a table (T1) with a primary key of attributes A1, A2 and A3.
> I have another table (T2) that has two links to T1. In my case, the A1 and A2 values must be the same, but the A3 values will be different (for one link it is required, for the other it is optional).
> Thus T2 has the following attributes: A1, A2, A3_1 and A3_2. Of course, A3_1 and A3_2 point to the A3 field in T1.
> When I import the database, the first relationship has A1 only. The second relationship has A1, and two copies each of A2, A3_1 and A3_2.
> I have sorted this out by hand (editing the XML), but the modeler should do the right thing when importing, which is creating one relationship of A1, A2, and A3_1, and another relationship of A1, A2, and A3_2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.