Referential Integrity Constraints
A relationship has one value and the value must exist.
Product madeBy Company: company must exist.
How do we enforce referential integrity constraints? (otherwise,
we get dangling pointers)
- forbid to delete a reference object, or
- delete the objects that reference an object we’re deleting.