UniqueConstraint
- Implemented Interfaces:
Annotation
Specifies that a unique constraint is to be included in the generated DDL for a primary or secondary table.
Example:
{@snippet :- Since:
- JPA 1.0
Public Annotation Attributes
String[] columnNames default null
- Since:
- JPA 1.0
String name default ""
Defaults to a provider-generated name.
- Since:
- JPA 2.0
String options default ""
- Since:
- JPA 3.2