@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface JoinField
Define a structured data type's foreign key field for an object mapped to NoSql data. This is a generic form of the @JoinColumn annotation, which is not specific to relational databases. It can be use to map EIS and NoSQL data.
Since:
EclipseLink 2.4
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    (Optional) The name of the foreign key/id reference field in the source record.
    (Optional) The name of the id field in the target record.
  • Element Details

    • name

      String name
      (Optional) The name of the foreign key/id reference field in the source record.
      Default:
      ""
    • referencedFieldName

      String referencedFieldName
      (Optional) The name of the id field in the target record.
      Default:
      ""