Example:
@Entity
@Table(
name = "EMPLOYEE",
uniqueConstraints = @UniqueConstraint(columnNames = {"EMP_ID", "EMP_NAME"})
)
public class Employee { ... }
| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public String | |
| public String |
| columnNames | back to summary |
|---|---|
| public String[] columnNames() (Required) The names of the column which make up the constraint. | |
| name | back to summary |
|---|---|
| public String name() (Optional) The name of the constraint. Defaults to a provider-generated name.
| |
| options | back to summary |
|---|---|
| public String options() (Optional) A SQL fragment appended to the generated DDL which creates this constraint.
| |