ObjectDB ObjectDB

MapKeyJoinColumn.unique - JPA annotation element

Annotation Element
javax.persistence.MapKeyJoinColumn
boolean unique

(Optional) Whether the property is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint is only a single field.
Default value:
false
Since:
JPA 2.0