db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "E.Nebrat" <e.neb...@tacisenergy.org.ua>
Subject Re: please help with complexObjectModel
Date Wed, 18 Feb 2004 11:23:58 GMT
I didn't know about any schema-elements naming rules from docs... But 
anyway there is something else here...

>I guess your column is named exactly as the related table, eg. foreign
>column name ="SomeTable" and related table name="SomeTable".
>
This is my schema fragment. Could you point me, what's wrong? Thank you.

<table name="o_objects" javaName="Item" idMethod="idbroker"
       description="Objects Table">
    ...
    <column
      name="o_o_otype"
      javaName="itemType"
      required="true"
      type="INTEGER"
      description="Book Title"/>
    ...
    <foreign-key foreignTable="o_types"  >
      <reference
        local="o_o_otype"
        foreign="o_t_id" />
    </foreign-key>

  </table>

and

    <table name="o_types" javaName="ItemType" idMethod="idbroker" >
        <column
            name="o_t_id"
            javaName="itemTypeID"
            required="true"
            primaryKey="true"
            type="INTEGER"
            description="Object Type Id"/>
    ....
    </table>

-- 
BR, Eugene Nebrat.




---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message