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 |
| columnNames | back to summary |
|---|---|
| public String[] columnNames() (Required) An array of the column names that make up the constraint. | |
| name | back to summary |
|---|---|
| public String name() (Optional) Constraint name. A provider-chosen name will be chosen if a name is not specified.
| |