I have a usecase where I need to POST a hierarchial structure.
I have a header and associations to multiple items. The OData service is implemented to deep insert both header and related items together.
Could someone provide me a sample java code on how this can be achieved using Odata4j APIs.
Sample OData:
<a:author>
<a:name />
</a:author>
<a:content type="application/xml">
<m:properties>
<d:id />
<d:type>TEST</d:Formtype>
</m:properties>
</a:content>
<m:inline>
<a:feed>
<a:entry>
<a:author>
<a:name />
</a:author>
<a:content type="application/xml">
<m:properties>
<d:Key>first_name</d:Key>
<d:Value>A</d:Value>
</m:properties>
</a:content>
</a:entry>
</a:feed>
</m:inline>
</a:link>
</a:entry>