check constraint to be included in the generated DDL.
jakarta.persistence.ManyToOne association is annotated, the
check constraint is added to the join column definition.
constraints().
For an entity with secondary tables, a check constraint may involve columns of the primary table, or columns of any one of the secondary tables. But it may not involve columns of more than one table.
An entity may have multiple @Check annotations, each defining a different
constraint.
DialectOverride.Check
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String |
| constraints | back to summary |
|---|---|
| public String constraints() The check constraint, written in native SQL. | |
| name | back to summary |
|---|---|
| public String name() The optional name of the check constraint. | |