EclipseLink 2.4.0, build 'v20120608-r11652' API Reference

org.eclipse.persistence.nosql.annotations
Annotation Type JoinField


@Target(value={METHOD,FIELD})
@Retention(value=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.

See Also:
NoSql
Author:
James Sutherland
Since:
EclipseLink 2.4

Optional Element Summary
 java.lang.String name
          (Optional) The name of the foreign key/id reference field in the source record.
 java.lang.String referencedFieldName
          (Optional) The name of the id field in the target record.
 

name

public abstract java.lang.String name
(Optional) The name of the foreign key/id reference field in the source record.

Default:
""

referencedFieldName

public abstract java.lang.String referencedFieldName
(Optional) The name of the id field in the target record.

Default:
""

EclipseLink 2.4.0, build 'v20120608-r11652' API Reference