RE: More than one database

Thomas Fischer <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <OF7CC9EFB4.E044EB8A-ONC1257501.00464C42-C1257501.00468B76@seitenbau.net>
> Hi there, i'm new to Torque and i'm making some tests to see if Torque 
fits
> my needs.
> Untll now, i'm finding torque amazingly simple and perfect for what i 
need,
> i tried hibernate and i dint like it.
> 
> I have 2 doubts.
> 
> The first doubt:
> Can i use more than one database at the same time ? I would need to work
> with a remote database and with a local database with almost the same
> schema. Do i need to generate te same schema 2 times ant put it in 2
> different packages ? or can i reuse generated classes to 2 different
> connections ?

If each class lives in only one database, this is easy. If some classes 
live in two databases, this is more complex but feasible (I have done it).

> 
> The second doubt:
> Is it possible to map many-to-many associations with Torque? I know it's 
not
> hard to implement that association by hand customizing some classes. But 
if
> already exists some generator solution, it would be great! because i 
have a
> lot of them.

You need to model two 1:n relations in Torque. There is no automated 
solution.

> By the way, an IRC channel would be a good improvement to the project
> support.

There is not enough man power.

    Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.