@Retention(value=RUNTIME) @Target(value=FIELD) @Documented public @interface PartitionKey
@Table
public class Entity {
// Partition key component 1
@PartitionKey(1)
private Long id;
// Partition key component 2. Date in YYYYMMDD
@PartitionKey(2)
private int date;
}
| Modifier and Type | Optional Element and Description |
|---|---|
int |
value
The order of this partition key, starting at 1
|
Copyright © 2012-2021. All Rights Reserved.