Skip to main content

Foreign Key Definitions

Foreign Key Definitions

A foreign key defines a referential integrity constraint. When a table containing a foreign key constraint is modified, the foreign key constraints are checked. You can add foreign key definitions to persistent classes. They are not meaningful in other kinds of classes. You can also enforce reference integrity by defining relationship properties that connect the classes.

See Foreign Key Syntax and Keywords in this reference.

See also:

FeedbackOpens in a new tab