You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Johan (JIRA)" <ji...@apache.org> on 2006/08/30 17:02:49 UTC

[JIRA] Created: (CAY-641) Stack trace instead of error message when relationship and attribute have the same name

Stack trace instead of error message when relationship and attribute have the same name
---------------------------------------------------------------------------------------

         Key: CAY-641
         URL: http://issues.apache.org/cayenne/browse/CAY-641
     Project: Cayenne
        Type: Improvement

  Components: CayenneModeler GUI  
    Versions: 1.2 [STABLE]    
 Environment: Mac OS X
Linux RH
    Reporter: Johan
    Priority: Trivial


When creating a relationship with the same name as an attribute the following stack-trace is given in the terminal, but no error is indicated in the GUI.

java.lang.IllegalArgumentException: Relationship name conflict with existing attribute '
        at org.objectstyle.cayenne.map.Entity.addRelationship(Entity.java:226)
        at org.objectstyle.cayenne.modeler.dialog.ResolveDbRelationshipDialog.save(Resoljava:345)
        at org.objectstyle.cayenne.modeler.dialog.ResolveDbRelationshipDialog.access$200ialog.java:102)
        at org.objectstyle.cayenne.modeler.dialog.ResolveDbRelationshipDialog$3.actionPeonshipDialog.java:248)
...


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/cayenne/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira