Annotation Interface PrimaryKeyColumn


@Documented @Retention(RUNTIME) @Target({ANNOTATION_TYPE,FIELD,METHOD}) @Column public @interface PrimaryKeyColumn
Identifies the annotated field of a composite primary key class as a primary key field that is either a partition or cluster key field. Annotated properties must be either reside in a PrimaryKeyClass to be part of the composite key or annotated with Id to identify a single property as primary key column.
Author:
Matthew T. Adams, Mark Paluch
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 3.0.
    The name of the column in the table.
    The cluster ordering of this column if type() is PrimaryKeyType.CLUSTERED, otherwise ignored.
    int
    The order of this column relative to other primary key columns.
    The type of this key column.
    The name of the column in the table.