0

I am able to serialize from Child to Parent (JsonManagedReference -> JsonBackReference) but its not working for Parent -> child.

Is there any way to do that ?

I also tried with the JsonIdentityInfo. Here, I am unable to deserialize Json that contain 2 objects with the same ID. I have created a question:

Unable to deserialize JSON with same ID

Community
  • 1
  • 1
Krish
  • 1,804
  • 7
  • 37
  • 65
  • One option is to use multiple object mappers with different mixins, but i think it will be hard to read and maintain, so probably no point. – varren Nov 02 '17 at 16:47

1 Answers1

1

After a lot of tries, implemented the traversing bi-directional with @JsonIgnoreProperties

example: "@JsonIgnoreProperties(allowSetters = true, value = { "enterprise" })"

Krish
  • 1,804
  • 7
  • 37
  • 65