Specifies that a unique constraint is to be included in the
 generated DDL for a primary or secondary table.
 
Example:
@Entity
@Table(
    name = "EMPLOYEE",
    uniqueConstraints = @UniqueConstraint(columnNames = {"EMP_ID", "EMP_NAME"})
)
public class Employee { ... }
- Since:
- 1.0
- 
Required Element SummaryRequired ElementsModifier and TypeRequired ElementDescriptionString[](Required) The names of the column which make up the constraint.
- 
Optional Element SummaryOptional Elements
- 
Element Details- 
nameString name(Optional) The name of the constraint.Defaults to a provider-generated name. - Since:
- 2.0
 - Default:
- ""
 
- 
columnNamesString[] columnNames(Required) The names of the column which make up the constraint.
- 
optionsString options(Optional) A SQL fragment appended to the generated DDL which creates this constraint.- Since:
- 3.2
 - Default:
- ""
 
 
-