You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jm...@apache.org on 2001/06/20 18:51:01 UTC
cvs commit: jakarta-turbine/conf/torque/templates/om Object.vm
jmcnally 01/06/20 09:51:00
Modified: conf/torque/templates/om Object.vm
Log:
bugfix for BigDecimal attributes with default value
submitted by Gabriel Moreno <ga...@cs.cmu.edu>
Revision Changes Path
1.58 +5 -1 jakarta-turbine/conf/torque/templates/om/Object.vm
Index: Object.vm
===================================================================
RCS file: /home/cvs/jakarta-turbine/conf/torque/templates/om/Object.vm,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- Object.vm 2001/05/31 00:59:42 1.57
+++ Object.vm 2001/06/20 16:50:58 1.58
@@ -60,7 +60,11 @@
#set ( $defaultValue = "false" )
#end
#end
- #set ($defVal = "=$quote$defaultValue$quote")
+ #if ($cjtype == "BigDecimal")
+ #set ($defVal = "= new BigDecimal($defaultValue)")
+ #else
+ #set ($defVal = "=$quote$defaultValue$quote")
+ #end
#end
/** the value for the $clo field */
private $cjtype $clo$defVal;
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org