Make your own free website on Tripod.com

Defining Entity Relation

Defining relations to other entities:

  <relation type="one" fk-name="CONT_MECH_TYPE" 
    rel-entity-name="ContactMechType">
   <key-map field-name="contactMechTypeId"/>
  </relation>
  <relation type="many" rel-entity-name="ContactMechTypeAttr">
    <key-map field-name="contactMechTypeId"/>
  </relation>
  <relation type="many" rel-entity-name="ContactMechAttribute">
    <key-map field-name="contactMechId"/>
  </relation>
. . .
  <relation type="many" rel-entity-name="PartyContactMech">
    <key-map field-name="contactMechId"/>
  </relation>
  <relation type="one-nofk" rel-entity-name="PostalAddress">
    <key-map field-name="contactMechId"/>
  </relation>
  <relation type="one-nofk" rel-entity-name="TelecomNumber">
    <key-map field-name="contactMechId"/>
  </relation>
  <relation type="many" rel-entity-name="OrderContactMech">
    <key-map field-name="contactMechId"/>
  </relation>
  <relation type="many" rel-entity-name="OrderItemContactMech">
    <key-map field-name="contactMechId"/>
  </relation>
  <relation type="many" rel-entity-name="Invoice">
    <key-map field-name="contactMechId"/>
  </relation>
  <relation type="many" rel-entity-name="RespondingParty">
    <key-map field-name="contactMechId"/>
  </relation>
  <relation type="many" rel-entity-name="ShipmentContactMech">
    <key-map field-name="contactMechId"/>
  </relation>
</entity>