I'm using a Mongo database and the backend with Java Spring. Originally it had this structure:
"defaultActivation":{
"accounts": ["500026", "500027"]
}
And I mapped it with the following structure in Java:
private Map<String, Set<String>> defaultActivation;
But now the structure is a bit more complex:
"defaultActivation":{
"accounts": ["500026", "500027"],
"paymentsModel": {
"TSP": ["CO", "AR"],
"PSP": ["CO"]
}
}"
How can I map this new structure, should I create another model in Java?