db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel L. Rall" <...@finemaltcoding.com>
Subject Re: [PATCH] templates/om/Object.vm
Date Sat, 17 Apr 2004 21:08:29 GMT
Luca Zappa wrote:
> Hi,
> here's a simple patch to templates/om/Object.vm that fixes a compile
> error with j2sdk1.5.0 in method toString.
> 
> 
> The error was in the sequential call of append method of StringBuffer:
> "the type AbstractStringBuilder is not visible"
> 
> 
> Index: Object.vm
> ===================================================================
> RCS file:
> /home/cvspublic/db-torque/src/generator/src/templates/om/Object.vm,v
> retrieving revision 1.12
> diff -u -r1.12 Object.vm
> --- Object.vm   21 Jan 2004 23:05:57 -0000      1.12
> +++ Object.vm   8 Apr 2004 12:17:37 -0000
> @@ -1529,9 +1529,9 @@
>          StringBuffer str = new StringBuffer();
>          str.append("$table.JavaName:\n");
>  #foreach ($col in $table.Columns)
> -        str.append("$col.JavaName = ")
> -           .append(get${col.JavaName}())
> -           .append("\n");
> +        str.append("$col.JavaName = ");
> +        str.append(get${col.JavaName}());
> +        str.append("\n");
>  #end
>          return(str.toString());
>      }

Commited in CVS rev 1.13 of Object.vm.



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