ObjectDB ObjectDB

javax.jdo.annotations.PrimaryKey - JDO annotation

javax.jdo.annotations
Annotation PrimaryKey

Target:
Classes and fields (including property get methods)
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
String column
Name of the column to use for the primary key
Name of the column to use for the primary key
Returns:
the name of the column to use for the primary key
Default value:
""
Since:
JDO 2.1
The column(s) for the primary key
The column(s) for the primary key
Returns:
the column(s) for the primary key
Default value:
{}
Since:
JDO 2.1
String name
Name of the primary key constraint
Name of the primary key constraint
Returns:
the name of the primary key constraint
Default value:
""
Since:
JDO 2.1