You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Yi-Xiong Zhou <yz...@arcturusag.com> on 2001/05/07 21:48:42 UTC
Can Torque generate OR mapping from database directly?
Can Torque generate OR mapping from database directly? without need an .xml
file to specify the database schema?
Yi-Xiong Zhou
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Can Torque generate OR mapping from database directly?
Posted by John McNally <jm...@collab.net>.
no. you cannot depend on the database/jdbc to give you the relevant
data. A notable case being MySQL and foreign keys.
john mcnally
Yi-Xiong Zhou wrote:
>
> Can Torque generate OR mapping from database directly? without need an .xml
> file to specify the database schema?
>
> Yi-Xiong Zhou
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Can Torque generate OR mapping from database directly?
Posted by Jon Stevens <jo...@latchkey.com>.
on 5/7/01 12:48 PM, "Yi-Xiong Zhou" <yz...@arcturusag.com> wrote:
> Can Torque generate OR mapping from database directly? without need an .xml
> file to specify the database schema?
>
> Yi-Xiong Zhou
Yes, using JDBC metadata, but if you are using MySQL, then what is generated
won't be correct since MySQL drops all the foreign key references.
-jon
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org