I have a range key field that is also an GSI. Does anybody know how to annotate this attribute with DynamoDBMapper?
FYI, I tried putting both @DynamoDBRangeKey and @DynamoDBIndexHashKey annotations on like below, and it gave an "no RANGE key value present" error while querying data.
@DynamoDBRangeKey(attributeName = POOL_HOST)
@DynamoDBIndexHashKey(attributeName = POOL_HOST,
globalSecondaryIndexName = POOL_HOST_GSI)
String poolhost;