aws / aws/aws-sdk-java-v2

Dyanmodb Enchanced client nested Objects as json

Aperta
#2,265 15 commenti 1 reazione 0 assegnatari Vedi su GitHub
documentation dynamodb-enhanced p3
Lingua principale
Java
Stelle
2.6k
Fork
1k
Merge medio
2g 9h
PR unite (30g)
51

Descrizione

I have nested Object (composition) use to represent data that i want to store and using Dyanmodb enhanced client as part of AWS Java version 2 api. In the readme it explains how to flatten the objects. In the version one of the api was able to store list of objects as json documents in dyanmodb. Would like it to be stored as Json not flattened for backward compatibility:

## Steps to Reproduce
```
public class Customer{
private String name;
private List recordMetadata;
//getters and setters for all attributes
}

public class GenericRecord {
private String id;
private String details;
//getters and setters for all attributes
}
```
Would like it to be stored as below not flattened for backward compatibility:
```
{
"name": "ABC",
"recordMetadata": [
{
"id":"123",
"details":"hello"

},
{
"id":"456",
"details":"yellow"

}
]

}
```
## Current Behavior
In the readme it only describe how to flatten

https://github.com/aws/aws-sdk-java-v2/blob/master/services-custom/dynamodb-enhanced/README.md

## Your Environment

* AWS Java SDK version used: 2.15.72

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Iniziare dal README di DynamoDB enhanced client collegato nell’issue e esaminare il comportamento documentato di appiattimento degli oggetti insieme all’esempio di modello Java. Determinare l’approccio supportato per persistere una List di oggetti GenericRecord annidati come documento JSON per la compatibilità con le versioni precedenti; il lavoro è completato quando la struttura Customer richiesta viene memorizzata senza appiattimento e il comportamento è coperto da test appropriati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, java
Ambito
database
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.