Hi,
I need help to understand the inheritance mechanism in Torque. Let's say I want to
model the following hierarchy:
Vehicle
|
+----+----+
| |
Car Truck
Attributes
----------
Car: id, brand, color, doors
Truck: id, brand, color, wheels
How would I write the schema? No details needed, just the inheritance stuff...
My start:
<table name="vehicle">
<column name="id" ... inheritance="single">
<inheritance key="1" class="acme.om.Car" extends="acme.om.Vehicle">
<inheritance key="2" class="acme.om.Truck" extends="acme.om.Vehicle">
</column>
</table>
Then how would I use the classes in my code? The "Inheritance guide" is missing
examples!
/Christer
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>