Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 68733 invoked from network); 8 Mar 2010 08:40:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Mar 2010 08:40:37 -0000 Received: (qmail 99988 invoked by uid 500); 8 Mar 2010 08:40:14 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 99896 invoked by uid 500); 8 Mar 2010 08:40:14 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 99888 invoked by uid 99); 8 Mar 2010 08:40:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 08:40:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.24.207.26] (HELO mail.seitenbau.net) (217.24.207.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 08:40:12 +0000 Received: from [192.168.15.18] (helo=www.seitenbau.net) by router.seitenbau.net with esmtp (Exim 4.43) id 1NoYVB-0004t7-Jg for torque-dev@db.apache.org; Mon, 08 Mar 2010 09:39:51 +0100 In-Reply-To: <012201cabd38$64253a20$2c6fae60$@com> References: <012201cabd38$64253a20$2c6fae60$@com> Subject: RE: Custom generation with standard templates X-KeepSent: AD1A3555:E6680436-C12576E0:002E92C1; type=4; name=$KeepSent To: "Apache Torque Developers List" X-Mailer: Lotus Notes Release 8.5 December 05, 2008 Message-ID: From: Thomas Fischer Date: Mon, 8 Mar 2010 09:39:48 +0100 X-MIMETrack: Serialize by Router on www/seitenbau(Release 8.5HF467 | May 15, 2009) at 08.03.2010 09:39:48 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Spam-Score: -1.4 (-) X-Spam-Report: -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP > I have studied the generator getting started page for torque 4 and the > concept reference. But I have a situation that I think is not mentioned > there, since that documentation is about building things from scratch. > > What I want to do is use some of the standard components, more specific the > templates that generate tables, foreign keys and so on with specific source > elements (not an entire database schema). > > If I have a SourceElement object corrensponding to this xml-element: > > > type="INTEGER" /> > type="VARCHAR" /> >
> > And I want to generate sql code unsing the standard table.vm template... How > much do I need to setup by myself and what standard components can I use? > I have looked at the code but I haven't quite figured out what components > (generator, controller, configuration) are used when generating sql-files. > /Ludwig Ok, this part of the documentation has moved to the templates, as the generator does not know anything about the torque dtd. See http://db.apache.org/torque/releases/torque-4.0/documentation/modules/templates/index.html So obviously, the "overview" page needs to be modified to point to the module containing the documnetation. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org