You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Angel Cepa Pandiella <an...@hotmail.com> on 2005/10/24 11:32:42 UTC
Inheritance using Torque
Hi all,
I need to map inheritance as described in
http://db.apache.org/ojb/docu/guides/advanced-technique.html#Mapping+Classes
+on+Multiple+Joined+Tables but I have to generate the ojb schema from a
Torque one. I use Torque to generate the ojb schema & the database structure
automatically.
Anyone knows how is the Torque schema that genetates the ojb one of the
link? I read some Torque documentation but there aren't examples available.
Regards,
A. Cepa
Re: Inheritance using Torque
Posted by Thomas Dudziak <to...@gmail.com>.
On 10/24/05, Angel Cepa Pandiella <an...@hotmail.com> wrote:
> I need to map inheritance as described in
> http://db.apache.org/ojb/docu/guides/advanced-technique.html#Mapping+Classes
> +on+Multiple+Joined+Tables but I have to generate the ojb schema from a
> Torque one. I use Torque to generate the ojb schema & the database structure
> automatically.
>
> Anyone knows how is the Torque schema that genetates the ojb one of the
> link? I read some Torque documentation but there aren't examples available.
It's basically only the sum of the columns for the fields per
class-descriptor, so in the specific case you'd have table A_TABLE
with columns ID and VALUE_, and table B_TABLE with columns ID and
VALUE_ (for the fields id and someValueFromB from class B).
You might also add a foreignkey to table B, that points to A using ID
for both the local and remote column.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org