Persistent.primaryKey - JDO annotation element

Annotation Element
javax.jdo.annotations.Persistent
String primaryKey

Whether this member is part of the primary key for application identity. This is equivalent to specifying @PrimaryKey as a separate annotation on the member.
Returns:
whether this member is part of the primary key
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.