The provided key element does not match the schema (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: A8MU7EM6I8NG0VGKFBM0VGIHK7VV4KQNSO5AEMVJF66Q9ASUAAJG)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1695) ~[aws-java-sdk-core-1.11.443.jar:na]
Entity
@DynamoDBHashKey
public long getId() {
return id;
}
Unable to persist data into dynamoDB table.
Entity