Hi,
in my Gateway I have the following entities:
Object
- Id (Key)
ObjectAttribute
- Id (Key)
- Attribute (Key)
- Value
Both are connected via association (Object has ObjectAttributes).
Now I want to describe in annotations how the object model looks like (what attributes are available) and where to get the data from (Correct Path in the ObjectAttributeSet).
But I don't know how to solve this.
My Annotations should look like this:
<Annotations xmlns="http://docs.oasis-open.org/odata/ns/edm" Target="ZDA_TEST_02_SRV.Object">
<Annotation Term="zda.test.Groups">
<Collection>
<Record Type="zda.test.Group">
<PropertyValue String="Group 1" Property="Label"/>
<PropertyValue Property="Fields">
<Collection>
<Record Type="zda.test.GroupField">
<PropertyValue String="Name" Property="Label"/>
<PropertyValue Path="?????????" Property="Attribute"/>
</Record>
</Collection>
</PropertyValue>
</Record>
<Record Type="zda.test.Group">
<PropertyValue String="Group 2" Property="Label"/>
<PropertyValue Property="Fields">
<Collection>
<Record Type="zda.test.GroupField">
<PropertyValue String="Country" Property="Label"/>
<PropertyValue Path="?????????" Property="Attribute"/>
</Record>
</Collection>
</PropertyValue>
</Record>
</Collection>
</Annotation>
</Annotations>
Is this possible?
And is there any reference for using paths in annotations?
In general: I think there is very less documentation for Annotations... =/
Thanks for your help!
Regards,
Dominik