db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r995648 - /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMTableTransformer.java
Date Fri, 10 Sep 2010 03:00:51 GMT
Author: tfischer
Date: Fri Sep 10 03:00:51 2010
New Revision: 995648

URL: http://svn.apache.org/viewvc?rev=995648&view=rev
Log:
- TORQUE-127: remove check for "null" value of idMethod attribute of element table in transformer.

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

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMTableTransformer.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMTableTransformer.java?rev=995648&r1=995647&r2=995648&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMTableTransformer.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMTableTransformer.java
Fri Sep 10 03:00:51 2010
@@ -155,11 +155,7 @@ public class OMTableTransformer extends 
     {
         Object idMethod = tableElement.getAttribute(
                 TorqueSchemaAttributeName.ID_METHOD);
-        // TODO: in the 3.3 schema, "null" is the default value for idMethod.
-        // Therefore we must test for this explicit string.
-        // Can be removed once the dtd/schema is updated.
-        if (idMethod == null
-            || TorqueSchemaIdMethod.NULL.getName().equals(idMethod))
+        if (idMethod == null)
         {
             idMethod = tableElement.getParent().getAttribute(
                     TorqueSchemaAttributeName.DEFAULT_ID_METHOD);



---------------------------------------------------------------------
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