'AWS DynamoDB java enhanced client mapping of dynamic set of properties
I try to find a way how to map the next json with a dynamic set of properties
{
"id" : "078c590a-f379-44d6-acfa-e4f4bf6d1c1e",
"list_id" : "6a9b8285-c798-471a-912f-e8ab7492f935",
"2b5b4df1-8f4d-4f6c-9c66-d5486c0639e9" : "USA",
"1768bc2a-c0fd-403a-9770-974c7cf4f920" : "NY",
"052d7982-4930-4fe8-91dc-e352a6e04112" : "5th avenue"
}
to the class
public static class Asset {
private String id;
private String listId;
private Map<String, String> metaData;
// all getters and setters
}
using the AWS DynamoDB enhanced client.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
