If I have 3 objects A, B and C. Where A has B which has C, I don't want to show
<a>
<b>
<c/>
</b>
</a>
I want to show
<a>
<c/>
</a>
Is there any way to do it with JAXB?
If I have 3 objects A, B and C. Where A has B which has C, I don't want to show
<a>
<b>
<c/>
</b>
</a>
I want to show
<a>
<c/>
</a>
Is there any way to do it with JAXB?
You can implement XmlAdapter<C, B>
to marshal the contained C
instead of B