db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Poeschl <mpoes...@marmot.at>
Subject Re: [PATCH] MapBuilder.vm not checking if db has specific package
Date Wed, 18 Dec 2002 14:07:11 GMT
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:   <mailto:turbine-torque-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:turbine-torque-dev-help@jakarta.apache.org>
>



Mime
View raw message