cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r602774 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainIndirectDiffBuilder.java
Date Mon, 10 Dec 2007 02:56:53 GMT
Author: kmenard
Date: Sun Dec  9 18:56:46 2007
New Revision: 602774

URL: http://svn.apache.org/viewvc?rev=602774&view=rev
Log:
Improved error message.

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainIndirectDiffBuilder.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainIndirectDiffBuilder.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainIndirectDiffBuilder.java?rev=602774&r1=602773&r2=602774&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainIndirectDiffBuilder.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainIndirectDiffBuilder.java
Sun Dec  9 18:56:46 2007
@@ -19,10 +19,6 @@
 
 package org.apache.cayenne.access;
 
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-
 import org.apache.cayenne.CayenneRuntimeException;
 import org.apache.cayenne.ObjectId;
 import org.apache.cayenne.graph.GraphChangeHandler;
@@ -32,6 +28,10 @@
 import org.apache.cayenne.map.ObjEntity;
 import org.apache.cayenne.map.ObjRelationship;
 
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+
 /**
  * A processor of ObjectStore indirect changes, such as flattened relationships and
  * to-many relationships.
@@ -92,8 +92,8 @@
             if (relationship.isFlattened()) {
                 if (relationship.isReadOnly()) {
                     throw new CayenneRuntimeException(
-                            "Cannot set the read-only flattened relationship "
-                                    + relationship.getName());
+                            "Cannot set the read-only flattened relationship '"
+                                + relationship.getName() + "' in ObjEntity '" + relationship.getSourceEntity().getName()
+ "'.");
                 }
 
                 // Register this combination (so we can remove it later if an insert



Mime
View raw message