db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1377252 - /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java
Date Sat, 25 Aug 2012 10:17:53 GMT
Author: tfischer
Date: Sat Aug 25 10:17:53 2012
New Revision: 1377252

URL: http://svn.apache.org/viewvc?rev=1377252&view=rev
Log:
Better handling of unknown schema type

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java?rev=1377252&r1=1377251&r2=1377252&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java
Sat Aug 25 10:17:53 2012
@@ -101,8 +101,11 @@ public final class SchemaTypeHelper
                         + " in Column "
                         + columnNameFromSchema);
             }
-            schemaType = SchemaType.valueOf(schemaTypeString);
-            if (schemaType == null)
+            try
+            {
+                schemaType = SchemaType.valueOf(schemaTypeString);
+            }
+            catch (IllegalArgumentException e)
             {
                 throw new SourceTransformerException("Unknown type "
                         + schemaTypeString



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message