db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1005987 - /db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm
Date Fri, 08 Oct 2010 19:37:59 GMT
Author: tfischer
Date: Fri Oct  8 19:37:58 2010
New Revision: 1005987

URL: http://svn.apache.org/viewvc?rev=1005987&view=rev
Log:
TORQUE-151: fix for previous commit

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm

Modified: db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm?rev=1005987&r1=1005986&r2=1005987&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/dbObject/base/primaryKeyMethods.vm
Fri Oct  8 19:37:58 2010
@@ -74,7 +74,7 @@
   #elseif($fieldType == "java.util.Date")
         ${setter}(((DateKey) key).getDate());
   #elseif($fieldType == "Boolean" || $fieldType == "boolean")
-        ${setter}(((BooleanKey) keys[$i]).getBoolean());
+        ${setter}(((BooleanKey) key).getBoolean());
   #else
         ${setter}(($fieldType) key);
   #end
@@ -151,6 +151,8 @@
         ${setter}(keys[$i].toString());
     #elseif($fieldType == "Date")
         ${setter}(((DateKey) keys[$i]).getDate());
+    #elseif($fieldType == "Boolean" || $fieldType == "boolean")
+        ${setter}(((BooleanKey) keys[$i]).getBoolean());
     #else
         ${setter}(($fieldType) keys[$i]);
     #end



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