i have a model with parent-child structure when i set parent model the following exception occures:
com.google.gwt.core.client.JavaScriptException: (InternalError) : too much recursion
at com.google.gwt.lang.Exceptions.wrap(Exceptions.java:36)
i have traced generated java class for my Model
when toJson
called it tries to call toJson
for parent property and in toJson
of parent property it tries to call toJson
of children list and after some calls throws too much recursion.
how can i solve that? is there any Annotation for that?