FasterXML / FasterXML/jackson-module-kotlin
Simplest way to use @JsonManagedReference
Aperta
- Lingua principale
- Kotlin
- Stelle
- 1.2k
- Fork
- 187
- Merge medio
- 9h 48m
- PR unite (30g)
- 16
Descrizione
We're trying to use `@JsonManagedReference` but so far the `@JsonBackReference` is null when we deserialize.
We tried the approach from #129 .
But actually this test doesn't check that the back reference is set when deserializing. We added
`assertNotNull(value.colors.single().car)`
and then the test fails.
The example from #149 works, but it uses a backing field, which we'd prefer not to use.
What's the simplest way to get the example from #129 to work?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.