JoinColumn.unique - JPA annotation element
Annotation Element javax.persistence.JoinColumn
UniqueConstraintannotation at the table level and is useful for when the unique key constraint is only a single field. It is not necessary to explicitly specify this for a join column that corresponds to a primary key that is part of a foreign key.
- Default value:
- JPA 1.0