Package javax.jdo.annotations
Annotation Type PrimaryKey
-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) public @interface PrimaryKeyAnnotation 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:
- 2.1
- Version:
- 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcolumnName of the column to use for the primary keyColumn[]columnsThe column(s) for the primary keyExtension[]extensionsVendor extensions.java.lang.StringnameName of the primary key constraint
-