Closed sunmingtao closed 3 years ago
The primary key is on getId()
, there is no corresponding setId()
because Id is a derived value. However, Dynamo DB requires a setId
method. The easiest solution is to provide an empty setId()
method.
@DynamoDBHashKey
public String getId() {
return SeasonUtils.toFullDateString(matchDate) + "-" + homeTeam + "-" + awayTeam;
}
public void setId(String id) {
//Empty setter required by dynamodb
}
Fails to start Spring boot server, error on
DynamoDBRepo.deleteAll()