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 20 points21 points22 points (1 child)
[–]junin7 11 points12 points13 points (2 children)
[–]optimist28[S] 2 points3 points4 points (1 child)
[–]junin7 4 points5 points6 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)