Annotation Type ObjectIdRelationship


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface ObjectIdRelationship
Defines a "virtual" read-only to-one relationship based on an FK that is a String representation of Cayenne ObjectId. A target object of this relationship can be of any entity type.
Since:
3.1
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the name of the property of the annotated entity that stores a String "FK" of a related entity.
  • Element Details

    • value

      String value
      Returns the name of the property of the annotated entity that stores a String "FK" of a related entity.
      Default:
      ""