I am trying to save the instance of the class bellow into dynamdb but getting
DynamoDBMappingException: not supported; requires @DynamoDBTyped or @DynamoDBTypeConverted exception.
@DynamoDBTable(tableName = "FulfillmentOrders")
public class FulfillmentOrder {
@DynamoDBHashKey
private String orderId;
@DynamoDBAttribute
@DynamoDBTyped(value = DynamoDBMapperFieldModel.DynamoDBAttributeType.M)
private Map<String, Object> body;
.......
}
It fails during map conversion, seems the problem is in Object generic type.
could someone help, where is the problem here or maybe SDK doesn't support such kind of conversion ?
Thanks!