Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

Annotations: Path to an association

$
0
0

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


Viewing all articles
Browse latest Browse all 1657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>