You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Kelvin Tan <ke...@relevanz.com> on 2002/12/18 02:13:15 UTC

[PATCH] MapBuilder.vm not checking if db has specific package


Regards,
Kelvin

--------
The book giving manifesto     - http://how.to/sharethisbook


Re: [PATCH] MapBuilder.vm not checking if db has specific package

Posted by Martin Poeschl <mp...@marmot.at>.
i moved the packagename handling to the model so ${package} works now 
(also change all other templates)

martin

Kelvin Tan wrote:

>Regards,
>Kelvin
>
>--------
>The book giving manifesto     - http://how.to/sharethisbook
>
>  
>
>------------------------------------------------------------------------
>
>Index: MapBuilder.vm
>===================================================================
>RCS file: /home/cvspublic/jakarta-turbine-torque/src/templates/om/MapBuilder.vm,v
>retrieving revision 1.15
>diff -u -r1.15 MapBuilder.vm
>--- MapBuilder.vm	24 Oct 2002 17:12:45 -0000	1.15
>+++ MapBuilder.vm	18 Dec 2002 01:09:35 -0000
>@@ -1,4 +1,10 @@
>-package ${package}.map;
>+#set ($db = $table.Database)
>+#if ($db.Package)
>+    #set ($package = $db.Package)
>+#else
>+    #set ($package = $targetPackage)
>+#end
>+package ${package};
> 
> import java.util.Date;
> import java.math.BigDecimal;
>  
>
>------------------------------------------------------------------------
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>