Add DB-level onDelete CASCADE example
This adds `onDelete: CASCADE` to the `address` 1-1 relationship just to show how you would map a db-level cascade.
This commit is contained in:
parent
e8f51acdb2
commit
57ac3bd4be
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ of several common elements:
|
|||
joinColumn:
|
||||
name: address_id
|
||||
referencedColumnName: id
|
||||
onDelete: CASCADE
|
||||
oneToMany:
|
||||
phonenumbers:
|
||||
targetEntity: Phonenumber
|
||||
|
|
Loading…
Add table
Reference in a new issue