Hi ppl,
 
 
        I'm a little bit confused in Torque's inheritance... in the site's example there's
<table name="A"...>
  ...
  <column name="FOO" inheritance="single" type="CHAR" size="1"...>
    <inheritance key="B" class="B" extends="com.mycompany.project.om.A"/>
    <inheritance key="C" class="C" extends="com.mycompany.project.om.A"/>
    <inheritance key="D" class="D" extends="com.mycompany.project.om.B"/>
  </column>
</table>
First of all, what's this inheritance atribute in column element for? What are the single/false values descriptions?
Second, in inheritance element, what's the differences between key and class attributes?
Third, what would be the column foo in the database? An ID field (common to the inherited tables) that's used for the joins?
And the last, would I have to set anything else in the subclasses xml schemas for the inheritance to work?
Thanks in advance!
Thiago Souza
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.211 / Virus Database: 261.8.3 - Release Date: 6/2/2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to