@Retention(value=CLASS) @Target(value=FIELD) @Beta public @interface Relation
|Modifier and Type||Optional Element and Description|
Name of the property holding the id (key) as a base for this relation.
public abstract java.lang.String idProperty
For to-one relations, the id property must reside in the same entity.
For to-many relations, the id must reside in the target entity as part of a to-one @Relation. This implies that to-many relations require a to-one relation in the target entity pointing to this entity.
Available under the Apache License, Version 2.0 - Copyright © 2017 greenrobot.org. All Rights Reserved.