@TargetSE(valueSE={}) @RetentionSE(valueSE=RUNTIMESE) public @interface UniqueConstraint
Example:
@Entity
@Table(
name="EMPLOYEE",
uniqueConstraints=
@UniqueConstraint(columnNames={"EMP_ID", "EMP_NAME"})
)
public class Employee { ... }
| 修飾子と型 | 必須要素と説明 |
|---|---|
StringSE[] | columnNames(必須)制約を構成する列名の配列。 |
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.