You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Gabriel Bauman <ga...@bravenet.com> on 2003/04/01 23:58:58 UTC

One database, many packages?

Hi there.

I have a database schema.xml containing several tables. The object model 
  I'm generating from the schema needs to be split across several 
packages - for instance, table A needs to go in foo.baz.aaa.om, and 
table B needs to go into foo.baz.bif.om.

Is it possible to do this? I know it looks odd.

Gabe


Re: AW: One database, many packages?

Posted by Gabriel Bauman <ga...@bravenet.com>.
> Maybe somebody knows a better way? Maybe even how to 
> specify packages per table within the database tag?

Yes, a "package" attribute in the <table> tag would be invaluable, and 
would certainly solve my problem. This might have some effect on 
inheritance when not explicitly specifying class keys, though.

Gabe


AW: One database, many packages?

Posted by Joachim Muller <jo...@wemove.com>.
The only way I know to do this is to use multiple 
schema files. the 'torque.schema.*' properties
in the build.properties file can take multiple
comma seperated entries.(I know this from JetSpeed)
In every database tag you can specify the package.

Don't know if you run into problems when using
relations over different schema files though.

Maybe somebody knows a better way? Maybe even how to 
specify packages per table within the database tag?


joachim





> -----Ursprungliche Nachricht-----
> Von: Gabriel Bauman [mailto:gabe@bravenet.com]
> Gesendet: Dienstag, 1. April 2003 23:59
> An: Turbine Torque Users List
> Betreff: One database, many packages?
> 
> 
> Hi there.
> 
> I have a database schema.xml containing several tables. The object model 
>   I'm generating from the schema needs to be split across several 
> packages - for instance, table A needs to go in foo.baz.aaa.om, and 
> table B needs to go into foo.baz.bif.om.
> 
> Is it possible to do this? I know it looks odd.
> 
> Gabe
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 
> 
>