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
Modifier and TypeOptional ElementDescriptionboolean
Deprecated.since 3.0.The name of the column in the table.The cluster ordering of this column iftype()
isPrimaryKeyType.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.
-
Element Details
-
value
The name of the column in the table.- Default:
- ""
-
name
The name of the column in the table.- Default:
- ""
-
ordinal
int ordinalThe order of this column relative to other primary key columns.- Default:
- -2147483648
-
type
PrimaryKeyType typeThe type of this key column. Default isPrimaryKeyType.CLUSTERED
.- Default:
- CLUSTERED
-
ordering
Ordering orderingThe cluster ordering of this column iftype()
isPrimaryKeyType.CLUSTERED
, otherwise ignored. Default isOrdering.ASCENDING
.- Default:
- ASCENDING
-
forceQuote
Deprecated.since 3.0. The column name gets converted intoCqlIdentifier
hence it no longer requires an indication whether the name should be quoted.Whether to cause the column name to be force-quoted.- See Also:
-
CqlIdentifier.fromInternal(String)
- Default:
- false
-