Re: Torque with more dynamic DB connections...

2004-01-06 Thread Ekkehard Kraemer
On Mon, 05 Jan 2004 17:29:25 -0600, Rob Gordon [EMAIL PROTECTED] wrote: I have been following thread regarding using a TorqueInstance with multiple databases, etc. I have a similar wish and a proposed solution, if I can get the eyes/ears of a developer. I want to be able to use the same tables

Re: Torque with more dynamic DB connections...

2004-01-06 Thread Hassan Abolhassani
Hi, When I try to insert a row in a table with autoincrement id I get the following exception: org.apache.torque.TorqueException: IdGenerator for table 'HOSPITAL' is null It was working before in mysql but when I moved to postgresql it is not working anymore. I

RE: Torque with more dynamic DB connections...

2004-01-06 Thread mkblueyonder
to do just this and submit the patches to the dev list. Regards, Malcolm Kendall -Original Message- From: Scott Eade [mailto:[EMAIL PROTECTED] Sent: 06 January 2004 04:50 To: Apache Torque Users List Subject: Re: Torque with more dynamic DB connections... Rob Gordon wrote: Will do...as you

Torque with more dynamic DB connections...

2004-01-05 Thread Rob Gordon
I have been following thread regarding using a TorqueInstance with multiple databases, etc. I have a similar wish and a proposed solution, if I can get the eyes/ears of a developer. I want to be able to use the same tables (ie Peers) across multiple databases. It just so happens, for a data

Re: Torque with more dynamic DB connections...

2004-01-05 Thread Rob Gordon
I see upon further investigation that the MapBuilder classes would have to be touched also. The table-nameMapBuilder class does a call to Torque.getDatabaseMap(hard-coded-database-name) in the doBuild method. This is called by the BasePeer. Somehow, the database name has to be passed down to the

Re: Torque with more dynamic DB connections...

2004-01-05 Thread Rob Gordon
Will do...as you can imagine, things are not quite always like they appear. As I look at it, the change touches more and more code. Not absolutely foreboding, but bigger than expected. As always. You say, In the absence of any strong objections... Would that mean existing committers/developers

Re: Torque with more dynamic DB connections...

2004-01-05 Thread Scott Eade
Rob Gordon wrote: Will do...as you can imagine, things are not quite always like they appear. As I look at it, the change touches more and more code. Not absolutely foreboding, but bigger than expected. As always. This is where feedback from someone with more experience than I would be of

Re: Torque with more dynamic DB connections, avoiding singleton and statics?

2004-01-04 Thread Jrgen Hoffmann
: Torque with more dynamic DB connections, avoiding singleton and statics? Hello, is it possible to avoid the Torque singleton and static OM members altogether? I have some quite dynamic needs for my DBMS connections. In the easiest case, it boils down to being able to specify which

RE: Torque with more dynamic DB connections, avoiding singleton and statics?

2004-01-02 Thread Jiaqi Guo
://cyclops-group.sourceforge.net -Original Message- From: Ekkehard Kraemer [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 5:48 AM To: [EMAIL PROTECTED] Subject: Torque with more dynamic DB connections, avoiding singleton and statics? Hello, is it possible to avoid the Torque

Re: Torque with more dynamic DB connections, avoiding singleton and statics?

2004-01-02 Thread Ekkehard Kraemer
:48 AM To: [EMAIL PROTECTED] Subject: Torque with more dynamic DB connections, avoiding singleton and statics? Hello, is it possible to avoid the Torque singleton and static OM members altogether? I have some quite dynamic needs for my DBMS connections. In the easiest case, it boils down to being

Torque with more dynamic DB connections, avoiding singleton and statics?

2003-12-31 Thread Ekkehard Kraemer
Hello, is it possible to avoid the Torque singleton and static OM members altogether? I have some quite dynamic needs for my DBMS connections. In the easiest case, it boils down to being able to specify which of several databases (defined in the standard Torque property file) to use during