@UniqueKey or @UniqueKey() - mark entity property as unique (UNIQUE INDEX will be created for this column, with autogenerated index name)
@UniqueKey(indexName) - mark entity property as unique (UNIQUE INDEX will be created for this column, with specified index name)
For multiple column unique constraints, use Entity level annotations (TODO).
@UniqueKey or @UniqueKey() - mark entity property as unique (UNIQUE INDEX will be created for this column, with autogenerated index name) @UniqueKey(indexName) - mark entity property as unique (UNIQUE INDEX will be created for this column, with specified index name) For multiple column unique constraints, use Entity level annotations (TODO).