cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ksenia Khailenko (JIRA)" <>
Subject [jira] Created: (CAY-1469) Modeler: dbRelationships renaming problem
Date Wed, 28 Jul 2010 10:51:18 GMT
Modeler: dbRelationships renaming problem

                 Key: CAY-1469
             Project: Cayenne
          Issue Type: Bug
          Components: Modeler
            Reporter: Ksenia Khailenko
            Priority: Minor

While the renaming of db relationships leaves the corresponding obj relationships without
renaming and this may be not user-friendly, but doesn't cause the error, there exist the problem
with flattened obj attributes. For example, let there is a dbEntity "DbEntity" with db relationship
"rel" and some attribute, which dbpath goes through this relation: attr_db_path="rel.some_property".
 So, when I change name of relationship from "rel" to "anotherRel", the table of object attributes
is redrawn incorrectly(empty cells), and on attempt to save there fails an error:

org.apache.cayenne.exp.ExpressionException: [v.3.0-SNAPSHOT Jul 28 2010 10:27:31] Can't resolve
path component: [DbEntity.rel].
	at org.apache.cayenne.project.validator.ObjAttributeValidator.validateObject(
	at org.apache.cayenne.project.validator.TreeNodeValidator.validate(
	at org.apache.cayenne.project.validator.Validator.validate(
	at org.apache.cayenne.project.validator.Validator.validate(
	at org.apache.cayenne.modeler.action.SaveAsAction.performAction(
	at org.apache.cayenne.modeler.action.SaveAsAction.performAction(
	at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(

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

View raw message