stephenh 2002/09/27 15:03:39
Modified: src/templates/ojb/model Object.vm
Log:
Patch by Russell Smyth <[EMAIL PROTECTED]>:
minor fix to ojb\Object.vm to set correct default value for all primitive types.
Revision Changes Path
1.7 +1 -1 jakarta-turbine-torque/src/templates/ojb/model/Object.vm
Index: Object.vm
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/templates/ojb/model/Object.vm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Object.vm 25 Sep 2002 18:31:10 -0000 1.6
+++ Object.vm 27 Sep 2002 22:03:39 -0000 1.7
@@ -40,7 +40,7 @@
#set ( $defaultValue = "null" )
#if ( $cjtype == "boolean")
#set ( $defaultValue = "false" )
- #elseif ($cjtype == "int")
+ #elseif ($cjtype == "int" || $cjtype == "short" || $cjtype == "long" ||
$cjtype == "float" || $cjtype == "double")
#set ( $defaultValue = "0" )
#end
protected $cjtype $clo = $defaultValue;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>