Defining identity constraints
Defining identity constraints
Defining a unique constraint
64
Identity constraints enable you to indicate that element values must be unique
within their specified scope.
There are three kinds of identity constraints: unique, key and keyRef.
Each identity constraint has two specific attributes: selector and field.
In a schema, an identity constraint is declared with its corresponding tag:
<unique>, <key> or <keyRef>.
Identity constraints are only available in a model targeted with XSD.
A unique constraint specifies that an element or an attribute value (or set of
values) must be unique or null within a specified scope.
For example:
Generated schema:
PowerDesigner
Need help?
Do you have a question about the PowerDesigner XML and is the answer not in the manual?