FAQ
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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedAug 30, '06 at 3:06p
activeAug 30, '06 at 3:06p
posts1
users1
websitecayenne.apache.org

1 user in discussion

Johan (JIRA): 1 post

People

Translate

site design / logo © 2022 Grokbase