I am trying to use DynamoDB annotations in nested objects as below:
@DynamoDBTable(tableName=xyz)
class entity1{
@DynamoDBAttribute
@DynamoDBTypeConvertedJson
private List<UserAction> userActions;
}
class UserAction{
@DynamoDBAutoGeneratedKey
private String actionId;
@DynamoDBAttribute
@DynamoDBAutoGeneratedTimestamp(strategy = DynamoDBAutoGenerateStrategy.CREATE)
private Long createdTime;
}
I dont see the above attributes are auto generated in UserAction class. I would like to know if these annotation usages are supported in nested objects or not. Please suggest.