@Retention(value=CLASS)
@Target(value=FIELD)
public @interface Unique
Trying to put an object with offending values will result in a UniqueViolationException.
Unique properties are based on an @Index, so the same restrictions apply.
It is supported to explicitly add the @Index annotation to configure the index.