company logo

inverse - Inverse relationship

The inverse relationship is defined as property name. The property name must be defined as relationship in the referenced property. When a relationship is declared as inverse to another relationship, the other relationship must be inverse to this relationship as well.

When defining base collections for a relationship, an inverse relationship is always required. A special case is an inverse relationship, which is inverse to itself. Such a partner relationship requires some specific treatment. When a structure has a relationship "partner", who is of the same type as the structure itself and the inverse relationship is partner again one should not define a local base collection. This will produce problems when copying the database. If relationship have to be defined this way, one has to provide specific context functions to handle the copy situation and providing the reference the relationship is based on if not yet available.

Keys: