Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 15643 invoked from network); 11 Feb 2004 20:37:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Feb 2004 20:37:49 -0000 Received: (qmail 76250 invoked by uid 500); 11 Feb 2004 20:37:32 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 76230 invoked by uid 500); 11 Feb 2004 20:37:32 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 76209 invoked from network); 11 Feb 2004 20:37:32 -0000 Received: from unknown (HELO ProcessSystemsServer) (65.36.40.98) by daedalus.apache.org with SMTP; 11 Feb 2004 20:37:32 -0000 Received: from [10.0.1.21] by ProcessSystemsServer (ArGoSoft Mail Server Plus, Version 1.6 (1.6.0.0)); Wed, 11 Feb 2004 15:50:17 -0500 From: "Brent Atkins" To: "Apache Torque Users List" Subject: RE: Using Torque's project-schema.xml to generate other files Date: Wed, 11 Feb 2004 15:32:36 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <90B3A0967470D44CB8FDE74907512328F1CE05@av1s008.at-work.local> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hey Siegfried, Thanks for your answer. You mentioned that there is a Templates directory. I never had seem it before, but your post made me look at it a bit closer and I saw that torque-gen.jar has the templates. The standard Torque.jar however doesn't have the templates... This really where my confusion started. I can understand how Torque-gen.jar could create the source from the schema and the templates, but there is apparently some other mechanism for making those files in Torque.jar. Which makes me question my understanding how Torque-gen.jar actually works. So I guess a good question is, what is different and should I care? Any ideas? You are right about setting up maven to generate Torque's docs in xdoc format for inclusion into your Maven site. In case you were curious, the properties to set (in project.properties) are... # Settings to generate torque docs in xdoc format # and place in xdoc directory for inclusion in # Maven site:generate goal torque.doc.format = anakia torque.doc.dir = xdocs/database Then all you have to do is create a xdocs/navigation.xml with code like this... Project Name // You can do it as a top bar link // Or put it in the side menu if you'd like with Just run [maven torque:doc] and [maven site:generate] and you are good to go. Since I already have the normal documentation setup, I'm more excited about setting up templates where web developers can see documentation about the Struts implementation. Which, I would imagine, will require a new velocity template. -----Original Message----- From: G�schl,Siegfried [mailto:Siegfried.Goeschl@drei.com] Sent: Wednesday, February 11, 2004 3:06 PM To: Apache Torque Users List Subject: RE: Using Torque's project-schema.xml to generate other files Well, I'm not qualified but I give it a try ... +) Some Java code in Torque does the JDBC magic to generate the schema.xml (done with the 'jdbc' target) +) The 'om' target for Torque parses the schema.xml and uses Velocity to render those Java objects (found in the Velocity context) with the given Velocity templates (found in templates\om) to Java source files. The beauty of Velocity is the usage of reflection to invoke methods on Java objects on the fly ... :-) +) The other targets using similar templates, e.g. 'ojb' generates the bare-bone Java files for ObjectBridge +) Mentioning xdocs - using the ANAKIA templates you could generate XDOC to be transformed to HTML. I don't know if there is a setting to automate this?! Cheers, Siegfried Goeschl --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org