@Retention(CLASS) @Target(FIELD) public @interface Unique
Index. Thus you do not need to put an extra @
Indexon the property, unless you want to configure the index with additional parameters. Trying to put object with offending values will result in a UniqueViolationException.
Available under the Apache License, Version 2.0 - Copyright © 2017-2019 ObjectBox Ltd. All Rights Reserved.