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

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.