Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 13121 invoked from network); 19 Feb 2008 19:52:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 19:52:56 -0000 Received: (qmail 10079 invoked by uid 500); 19 Feb 2008 19:52:50 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 10063 invoked by uid 500); 19 Feb 2008 19:52:50 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 10052 invoked by uid 99); 19 Feb 2008 19:52:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 11:52:50 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 19 Feb 2008 19:52:12 +0000 Received: (qmail 12985 invoked by uid 1977); 19 Feb 2008 19:52:32 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 19 Feb 2008 19:52:32 -0000 Date: Tue, 19 Feb 2008 19:52:32 +0000 (UTC) From: Thomas Fischer To: Apache Torque Users List Subject: Re: Disabling generation of org.apache.torque.linkage.MyDBMapInit In-Reply-To: <47BB23A7.1060203@synyx.de> Message-ID: <20080219194611.U5849@minotaur.apache.org> References: <47BB23A7.1060203@synyx.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 19 Feb 2008, Florian Hopf wrote: > Hi, > we are using Torque to generate our OM-classes for several submodules in > a Maven2 multiproject structure. Everything works fine so far, but as we > keep the schema code for the domain classes in the different > submodules, several instances of org.apache.torque.linkage.MyDBMapInit > are created (one for every subpackage that contains a Torque schema). > > Is the only use for this class to manually set up the schema > information? Can we safely ignore that there are several classes with > the same name in the same package in the classpath? The use of the class is to load all TableMap classes at once via DatabaseMap.initialize(). If you do not call DatabaseMap.initialize() (which is the "standard" way), the TableMaps are loaded the first time the corresponding Peer class is loaded. So if you do not call DatabaseMap.initialize() manually, you can ignore the classes. > > Or even better: Can the generation of the class be disabled? > At the moment, only by changing the templates, I'm afraid. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org