@Retention(value=CLASS) @Target(value=FIELD) @Beta public @interface Backlink
Example (to-one relation): one "Order" references one "Customer". The backlink to this is a to-many in the reverse direction: one "Customer" has a number of "Order"s.
Example (to-many relation): one "Teacher" references multiple "Student"s. The backlink to this: one "Student" has a number of "Teacher"s.
Note: changes made to a backlink relation based on a to-many relation are ignored.
|Modifier and Type||Optional Element and Description|
Name of the relation the backlink should be based on (e.g. name of a ToOne or ToMany property in the target entity).
Available under the Apache License, Version 2.0 - Copyright © 2017 ObjectBox Ltd. All Rights Reserved.