cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r592501 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/tools/CayenneGeneratorUtil.java
Date Tue, 06 Nov 2007 17:54:53 GMT
Author: kmenard
Date: Tue Nov  6 09:54:52 2007
New Revision: 592501

URL: http://svn.apache.org/viewvc?rev=592501&view=rev
Log:
Fixed a silent error.

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/tools/CayenneGeneratorUtil.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/tools/CayenneGeneratorUtil.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/tools/CayenneGeneratorUtil.java?rev=592501&r1=592500&r2=592501&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/tools/CayenneGeneratorUtil.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/tools/CayenneGeneratorUtil.java
Tue Nov  6 09:54:52 2007
@@ -19,13 +19,7 @@
 
 package org.apache.cayenne.tools;
 
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-
+import org.apache.cayenne.CayenneRuntimeException;
 import org.apache.cayenne.gen.DefaultClassGenerator;
 import org.apache.cayenne.map.DataMap;
 import org.apache.cayenne.map.EntityResolver;
@@ -34,6 +28,9 @@
 import org.apache.cayenne.util.Util;
 import org.xml.sax.InputSource;
 
+import java.io.File;
+import java.util.*;
+
 /**
  * Utility class to perform class generation from data map. This class is used by
  * ant and Maven plugins.
@@ -106,6 +103,9 @@
                         filteredEntities.add(entity);
                     }
                 }
+            }
+            else {
+                throw new CayenneRuntimeException("Cannot generate client classes because
the data map is not configured to allow them.");
             }
         }
         else {



Mime
View raw message