ObjectDB ObjectDB

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