db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owens, Ryan" <row...@uhd.com>
Subject Inheritance with extra columns.
Date Fri, 18 Jul 2003 21:26:12 GMT
I've seen a few similar questions a little while ago but no responses, sorry if I missed something.

I'm trying to do some inheritance between tables and from what I've read and tried so far
it seems that the default inheritance model in torque won't let me add new columns to 'subclasses'
of another table. So far all 

For instance, this schema:

<table name "test">     <column
         name="id"
         required="true"
         primaryKey="true"
         type="INTEGER"
             />
             
     <column name="inheritance" inheritance="single"
         type="CHAR">
         <inheritance class="Foo"
             extends="com.test.om.Test"
             key="A"
             />
         <inheritance class="Bar"
             extends="com.test.om.Test"
             key="B"
             />

     </column>
     
</table>

Mime
View raw message