A relationship maps instances of one class to instances of the same or another class. For each relationship, an inverse relationship may also exist that maps from the related class back to the originating class.

The <relationship> element modifies a relationship. Like the <attribute> element, <relationship> may be used to put, insert, or remove an object from a relationship.