Annotation Interface PrimaryKey
Annotation for a
SpannerPersistentEntity
that allows specifying the primary key columns
and their order.- Since:
- 1.1
-
Optional Element Summary
-
Element Details
-
keyOrder
@AliasFor(attribute="value") int keyOrderThe order of columns that comprise the primary key. Starts at 1 is consecutive.- Returns:
- the key order starting with 1 being first.
- Default:
- 1
-
value
@AliasFor(attribute="keyOrder") int valueThe order of columns that comprise the primary key. Starts at 1 is consecutive.- Returns:
- the key order starting with 1 being first.
- Default:
- 1
-