Annotation Type DynamoDbPartitionKey
Denotes this attribute as being the primary partition key of the DynamoDb table. This attribute must map to a
DynamoDb scalar type (string, number or binary) to be valid. Every mapped table schema must have exactly one of these.
Example using DynamoDbPartitionKey
:
@DynamoDbBean
public class Customer {
private String id;
private Instant createdOn;
@DynamoDbPartitionKey
public String getId() {
return this.id;
}
public void setId(String id) {
this.name = id;
}
public Instant getCreatedOn() {
return this.createdOn;
}
public void setCreatedOn(Instant createdOn) {
this.createdOn = createdOn;
}
}