You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It throws the following exception :
Caused by: com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException: not supported; requires @DynamoDBTyped or @DynamoDBTypeConverted
I was able to get this to work by adding the following annotation to the getter method in ProductItem @DynamoDBTypeConverted(converter = MetadataTypeConverter.class)
I was wondering why I see this behavior ?
The text was updated successfully, but these errors were encountered:
I tried to use @DynamoDBDocument to serialize a POJO that looks like this :
`
@DynamoDBDocument
public class Metadata {
Map<Object, Object> metadata;
@DynamoDBTable(tableName = "REPLACED_BY_CONFIG")
public class ProductItem {
private Metadata metadata;
}
`
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.Annotations.html#DynamoDBMapper.Annotations.DynamoDBDocument
It throws the following exception :
Caused by: com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException: not supported; requires @DynamoDBTyped or @DynamoDBTypeConverted
I was able to get this to work by adding the following annotation to the getter method in ProductItem
@DynamoDBTypeConverted(converter = MetadataTypeConverter.class)
I was wondering why I see this behavior ?
The text was updated successfully, but these errors were encountered: