Answer the question
In order to leave comments, you need to log in
Why doesn't the nested object get converted to XML when marshaled?
Can you please tell me why, when marshaling, one object stubbornly refuses to turn into XML and its package name, class and @ObjectId are simply indicated? In this case, the total mass of the remaining nested objects is normally transformed.
Annotations are placed - @XmlAccessorType(XmlAccessType.FIELD) @XmlType(...).
The result is:
<xmlRootObject>
...
<innerObjectList>[email protected]</innerObjectList>
...
</xmlRootObject>
<xmlRootObject>
...
<innerObjectList>
<innerObject>
<id>..</id>
<field1>..</field1>
...
</innerObject>
</innerObjectList>
...
</xmlRootObject>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question