cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r563885 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/project/validator/DbRelationshipValidator.java
Date Wed, 08 Aug 2007 13:57:09 GMT
Author: aadamchik
Date: Wed Aug  8 06:57:08 2007
New Revision: 563885

URL: http://svn.apache.org/viewvc?view=rev&rev=563885
Log:
CAY-843 Remove arbitrary reverse relationship mapping limitations 
(removing warning about missing reverse db)

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/project/validator/DbRelationshipValidator.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/project/validator/DbRelationshipValidator.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/project/validator/DbRelationshipValidator.java?view=diff&rev=563885&r1=563884&r2=563885
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/project/validator/DbRelationshipValidator.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/project/validator/DbRelationshipValidator.java
Wed Aug  8 06:57:08 2007
@@ -68,14 +68,6 @@
                             path);
                 }
             }
-
-            // validate reverse
-            if (rel.getReverseRelationship() == null) {
-                validator
-                        .registerWarning(
-                                "Missing reverse DbRelationship " + dbRelationshipIdentifier(rel)
+ " (currently required by Cayenne).",
-                                path);
-            }
         }
 
         if (Util.isEmptyString(rel.getName())) {



Mime
View raw message