JDO Annotation

PrimaryKey

Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD
Implemented Interfaces:
Annotation

Annotation on a member to define it as a primary key member of a class or persistent interface using application identity. Also used to define the primary key columns of a secondary table. Corresponds to the xml element "primary-key".
Since:
JDO 2.1

Public Annotation Attributes

String column default ""
Name of the column to use for the primary key
Since:
JDO 2.1
Column[] columns default {}
The column(s) for the primary key
Since:
JDO 2.1
String name default ""
Name of the primary key constraint
Since:
JDO 2.1