Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 4306 invoked from network); 19 Mar 2004 10:28:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Mar 2004 10:28:16 -0000 Received: (qmail 67944 invoked by uid 500); 19 Mar 2004 10:27:49 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 67670 invoked by uid 500); 19 Mar 2004 10:27:47 -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 67654 invoked from network); 19 Mar 2004 10:27:47 -0000 Received: from unknown (HELO zwei.siemens.at) (193.81.246.12) by daedalus.apache.org with SMTP; 19 Mar 2004 10:27:47 -0000 Received: from bavc001a.bav.siemens.ro (pix6-pri.frust.net [193.81.246.198] (may be forged)) by zwei.siemens.at (8.12.9/8.12.8) with ESMTP id i2JARxkx003438 for ; Fri, 19 Mar 2004 11:27:59 +0100 Received: from RO1CV02D ([163.242.239.126]) by bavc001a.bav.siemens.ro with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id HGTC2AK8; Fri, 19 Mar 2004 12:27:26 +0200 From: "Alexandru Dovlecel" To: "'Apache Torque Users List'" Subject: RE: torque-gen multiple db ? Date: Fri, 19 Mar 2004 12:27:53 +0200 Message-ID: <002201c40d9c$d8d39260$7eeff2a3@ro1cv02d> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: <003801c40d9a$af8bb5b0$690ba8c0@int.globaltechbg.com> 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 I did not knew that I have to have all three properties: primaryKey autoIncrement required So I had to run some tests until I get it rights (finally). You have the same attributes in postgres? Do you have to do some extra tweaks (like specifying the name of the generated sequence)? How do you do this in torque? BTW, about external schema, if you have an this will not generate the code for the tables in x-schema. If the x-schema is in the schema directory then it will be generated when it comes its turn. AFAIK. :) E.g. will most likely not generate the tables for x-schema but only the ones in the schema that contains this tag. Good luck, Alex > -----Original Message----- > From: Bogdan Vatkov [mailto:bvatkov@globaltech-bg.com] > Sent: Friday, March 19, 2004 12:12 PM > To: Apache Torque Users List > Subject: Re: torque-gen multiple db ? > > > I will check soon and will tell is it going well. > btw I am on postgresql (7.3.x) and native is just fine. > > but what you are fixing in your xml to support native id > creation for mssql > ? > > ----- Original Message ----- > From: "Alexandru Dovlecel" > To: "'Apache Torque Users List'" > Sent: Friday, March 19, 2004 11:29 AM > Subject: RE: torque-gen multiple db ? > > > > Pls tell me if it's working a circular reference between > external schemas > (I > > did not take a look into the code). > > > > Right now I am strugling to make native to work with mssql. > Quite alot of > > tweaking in my xml files. I wonder if it will generate > correct code when > > switching to another database (e.g. postgress). > > > > Alex > > > > > -----Original Message----- > > > From: Bogdan Vatkov [mailto:bvatkov@globaltech-bg.com] > > > Sent: Friday, March 19, 2004 11:33 AM > > > To: Apache Torque Users List > > > Subject: Re: torque-gen multiple db ? > > > > > > > > > I havent try > > and I hope it will do the work. > > > Since i am not using IdBroker i think it will not be a problem, > > > ..and I recommend you to use native id generation. > > > > > > regards, > > > bogdan > > > ----- Original Message ----- > > > From: "Alexandru Dovlecel" > > > To: "'Apache Torque Users List'" > > > Sent: Friday, March 19, 2004 10:58 AM > > > Subject: RE: torque-gen multiple db ? > > > > > > > > > > Hi, > > > > > > > > I have just started using torque. An expert should confirm > > > if this is a > > > good > > > > approach or not: for each module create a > > > -schema.xml. If one > > > > table of module A has relations with a table from > module B, then in > > > > A-schema.xml add the following tag: > > > > > > > > > > > > By doing this you can also customize the package in which > > > you are going to > > > > generate the files for the specified module. > > > > > > > > Dunno if crossreferences (A ref to B and B ref to A) works. > > > > > > > > If using the IdBroker, this solution does not work properly > > > (I think) > > > > because it generates several ids for the same table. So you > > > are going to > > > > have for table Table1 (module B) two entries: Table1 with > > > key 100 and > > > Table1 > > > > with key 1100 (the last one was added when building the > > > id-sql for the A > > > > module that refs the B module). I NEED CONFIRMATION IF THIS > > > IS A BUG OF > > > > TORQUE OR NOT, PLS. > > > > > > > > Hope it somehow helps you. > > > > Alex > > > > > > > > > -----Original Message----- > > > > > From: Bogdan Vatkov [mailto:bvatkov@globaltech-bg.com] > > > > > Sent: Friday, March 19, 2004 10:59 AM > > > > > To: Apache Torque Users List > > > > > Subject: Re: torque-gen multiple db ? > > > > > > > > > > > > > > > What I need is to have different schemas of one database. and > > > > > maybe i was > > > > > wrong > > > > > to talk about multiple databases ..actually i need 1 database > > > > > and multiple > > > > > schemas > > > > > in postgresql the schema is something like namespace (i do > > > > > not mean xml > > > > > schema or conceptual db schema) > > > > > > > > > > So the method of accomplishing the multiple schema i think > > > > > was to somehow > > > > > use multiple database definition method > > > > > > > > > > I think your way is not suitable for me as long as i need to > > > > > have relations > > > > > between some tables located in > > > > > different schemas. > > > > > > > > > > for the moment i have all the tables from all the schemas > > > in one XML > > > > > definition file. > > > > > > > > > > examle: > > > > > > > > > defaultidMethod="native" > > > > > > defaultJavaType="object"basePeer="org.apache.torque.util.BasePeer" > > > > > defaultJavaNamingMethod="javaname" heavyIndexing="false"> > > > > > > > > > > skipSql="false" > > > > > abstract="false" basePeer="org.apache.torque.util.BasePeer" > > > > > heavyIndexing="false" description="" x="4774" > y="2482" width="106" > > > > > height="142"> > > > > > .... > > > > > .... > > > > > 6 more tables with names "sys.tablename" > > > > > > > > > >
> > skipSql="false" > > > > > abstract="false" basePeer="org.apache.torque.util.BasePeer" > > > > > heavyIndexing="false" description="" x="5125" > y="2807" width="100" > > > > > height="90"> > > > > > ........ > > > > > ........ > > > > > 5 more tables with names "cs.tablename" > > > > > > > > > > and 4-5 more namespaces with 5-9 tables in each > > > > > > > > > > the code here contains some extra attributes and it is > > > > > because i have used > > > > > devaki to visualize my XML db schema. > > > > > > > > > > Of course i have made some corrections in the torque runtime & > > > > > torque-generator to successfully support the . (dot) > > > > > inside tables names. but now i want to separate the > > > definition of each > > > > > schema and place it in a separate file (xml file) > > > > > > > > > > any other suggestions will be appreciated > > > > > > > > > > regards, > > > > > bogdan > > > > > ----- Original Message ----- > > > > > From: "Gary Shea" > > > > > To: "Apache Torque Users List" > > > > > Sent: Thursday, March 18, 2004 7:36 PM > > > > > Subject: Re: torque-gen multiple db ? > > > > > > > > > > > > > > > > I'm currently using multiple databases. I build the > > > schema and java > > > > > > code separately for each database. In the schema document, > > > > > make sure > > > > > > you set a unique name in the element for > each of your > > > > > > databases. > > > > > > > > > > > > Does that answer your question? > > > > > > > > > > > > Gary > > > > > > > > > > > > On Thu, 18 Mar 2004, at 19:39 [+0200], Bogdan Vatkov > > > > > (bvatkov@globaltech-bg...: > > > > > > > > > > > > > Hey guys ..any clues about multiple databases > > > definition in the > > > > > torque-generator phase ? > > > > > > > > > > > > > > regards, > > > > > > > bogdan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: > torque-user-unsubscribe@db.apache.org > > > > > > For additional commands, e-mail: > torque-user-help@db.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > > > > > For additional commands, e-mail: > torque-user-help@db.apache.org > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > > > > For additional commands, e-mail: torque-user-help@db.apache.org > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > > > For additional commands, e-mail: torque-user-help@db.apache.org > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > > For additional commands, e-mail: torque-user-help@db.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org