You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Bryan Lewis (JIRA)" <ji...@apache.org> on 2012/05/17 20:52:08 UTC

[jira] [Created] (CAY-1707) Modeler doesn't allow duplicate DbEntity names in different DataMaps

Bryan Lewis created CAY-1707:
--------------------------------

             Summary: Modeler doesn't allow duplicate DbEntity names in different DataMaps
                 Key: CAY-1707
                 URL: https://issues.apache.org/jira/browse/CAY-1707
             Project: Cayenne
          Issue Type: Bug
          Components: Modeler
    Affects Versions: 3.0.2
         Environment: Mac OSX, Java 1.6 (shouldn't matter)
            Reporter: Bryan Lewis
            Priority: Minor


As discussed on the user list today...  I learned how to include two databases in one domain, thanks to a clue from Michael Gentry.  One domain with two DataMap/DataNode pairs.  I mistakenly thought all the table names had to be unique because the Modeler wouldn't let me rename one of the DbEntities to the same name as one in the other DataMap.  It turned the "DbEntity name" field red and showed a tooltip "There is another entity with the name..."

It is possible for two tables to have the same name in different DataMaps, as I found out by editing the xml file directly.  The edited file worked fine in the Modeler and at runtime.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAY-1707) Modeler doesn't allow duplicate DbEntity names in different DataMaps

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1707.
--------------------------------

    Resolution: Duplicate

This is a subcase (or a closely related case) to the one described in CAY-1152. I made a corresponding note in CAY-1152, and closing this issue as a duplicate.
                
> Modeler doesn't allow duplicate DbEntity names in different DataMaps
> --------------------------------------------------------------------
>
>                 Key: CAY-1707
>                 URL: https://issues.apache.org/jira/browse/CAY-1707
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 3.0.2
>         Environment: Mac OSX, Java 1.6 (shouldn't matter)
>            Reporter: Bryan Lewis
>            Priority: Minor
>
> As discussed on the user list today...  I learned how to include two databases in one domain, thanks to a clue from Michael Gentry.  One domain with two DataMap/DataNode pairs.  I mistakenly thought all the table names had to be unique because the Modeler wouldn't let me rename one of the DbEntities to the same name as one in the other DataMap.  It turned the "DbEntity name" field red and showed a tooltip "There is another entity with the name..."
> It is possible for two tables to have the same name in different DataMaps, as I found out by editing the xml file directly.  The edited file worked fine in the Modeler and at runtime.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira