Return-Path: Mailing-List: contact turbine-torque-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list turbine-torque-dev@jakarta.apache.org Received: (qmail 27492 invoked by uid 98); 18 Dec 2002 14:08:20 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 27473 invoked from network); 18 Dec 2002 14:08:18 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 18 Dec 2002 14:08:18 -0000 Received: (qmail 94554 invoked by uid 500); 18 Dec 2002 14:07:06 -0000 Received: (qmail 94547 invoked from network); 18 Dec 2002 14:07:06 -0000 Received: from unknown (HELO gandalf.tucana.at) (212.69.176.55) by daedalus.apache.org with SMTP; 18 Dec 2002 14:07:06 -0000 Received: (from root@localhost) by gandalf.tucana.at (8.11.2/8.11.2) id gBIDkwg21804 for turbine-torque-dev@jakarta.apache.org.AVP; Wed, 18 Dec 2002 14:46:58 +0100 Received: from marmot.at (marmot [80.108.22.14]) by gandalf.tucana.at (8.11.2/8.11.2) with ESMTP id gBIDkwI21796 for ; Wed, 18 Dec 2002 14:46:58 +0100 Message-ID: <3E00810F.9070208@marmot.at> Date: Wed, 18 Dec 2002 15:07:11 +0100 From: Martin Poeschl User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Turbine Torque Developers List Subject: Re: [PATCH] MapBuilder.vm not checking if db has specific package References: <104017518401@202.157.159.2> In-Reply-To: <104017518401@202.157.159.2> X-Enigmail-Version: 0.71.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: >For additional commands, e-mail: >