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

From: Johan (JIRA) ("Johan)
Date: Wed Aug 30 2006 - 11:02:49 EDT

  • Next message: Michael Gentry: "Re: Re: Encrypted JDBC Connection Settings"

    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
    



    This archive was generated by hypermail 2.0.0 : Wed Aug 30 2006 - 11:06:13 EDT