ObjectDB ObjectDB

Table.uniqueConstraints - JPA annotation element

Annotation Element
javax.persistence.Table
UniqueConstraint[] uniqueConstraints

(Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to any constraints specified by the Column and JoinColumn annotations and constraints entailed by primary key mappings.

Defaults to no additional constraints.

Default value:
{}
Since:
JPA 1.0