aws-sdk-java-v2 icon indicating copy to clipboard operation
aws-sdk-java-v2 copied to clipboard

Use auto generated attributes in dynamodb documents

Open jogee opened this issue 7 years ago • 1 comments

I'm looking for similar functionality to automatically generate UUID's for embedded documents as was being discussed in the dynamodb mapper improvements topic.

Issue reported external to github: @DynamoDBGeneratedUuid does not work for nested list objects.

@DynamoDBTable(tableName="XYZ")
class A {
    @DynamoDBAttribute
    List<B> listOfB;
}

@DynamoDBDocument
class B {
    @DynamoDBGeneratedUuid(DynamoDBAutoGenerateStrategy.CREATE)
    UUID id;
} 

Originally posted by @millems in https://github.com/aws/aws-sdk-java-v2/issues/35#issuecomment-332958299

jogee avatar Jul 14 '19 20:07 jogee

Hi @jogee could you add this as a comment to #35? We would prefer to track all new Mapper features in a single issue.

dagnir avatar Jul 15 '19 20:07 dagnir