Share via


2.22.2 Relation.RelationEnd

The Relation.RelationEnd attribute specifies the end of the relation in the physical data source to which the role is bound. A relation in the physical data source has a source and a target end.

The Relation.RelationEnd attribute is optional. If this attribute is present, its value MUST be a String. The Relation.RelationEnd attribute MUST be specified if the grandparent of this attribute is a Role element. The Relation.RelationEnd attribute MUST be ignored if the grandparent of this attribute is an Inheritance element, because the value of the Relation.RelationEnd attribute is assumed to be "Source" in this case.

If the grandparent of this attribute is a Role element and the value of its Role.Cardinality child element is "One" or "OptionalOne", the columns of the end of the relation in the physical data source that is specified by the value of the Relation.RelationEnd attribute MUST comprise a unique key for the table associated with that end.<3>

If this attribute is present, its value MUST be one of the following:

Source: Specifies that the Role is bound to the source end of the relation.

Target: Specifies that the Role is bound to the target end of the relation.

The following is the parent element of the Relation.RelationEnd attribute.

Parent elements

Relation

The following is the XML Schema definition of the Relation.RelationEnd attribute.

 <xsd:attribute name="RelationEnd" use="optional">
   <xsd:simpleType>
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="Source" />
       <xsd:enumeration value="Target" />
     </xsd:restriction>
   </xsd:simpleType>
 </xsd:attribute>