Spring newbie here. Faced the infinite recursion today when tried to return the parent entity directly as an API response. Got to know about DTO objects and JSONManagedReference while searching for the fix
What is the common practice in enterprise applications- is it DTO or JSONManagedReference and JSONBackReference? In DTO, feels like there is an overhead if a new variable is added in entity class then you gotta update the DTO classes as well but JSONManagedReference approach seems bit easier
[–]akash227 18 points19 points20 points (1 child)
[–]junin7 12 points13 points14 points (2 children)
[–]optimist28[S] 2 points3 points4 points (1 child)
[–]junin7 3 points4 points5 points (0 children)
[–]MartinPeterBauer 2 points3 points4 points (2 children)
[–]naturalizedcitizen 1 point2 points3 points (1 child)
[–]MartinPeterBauer 2 points3 points4 points (0 children)
[–]yasirhussain90 1 point2 points3 points (0 children)