@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 |
|---|---|
java.lang.String |
to
Name of the relation the backlink should be based on (e.g.
|