diff --git a/docs/odata-csdl-json/odata-csdl-json.html b/docs/odata-csdl-json/odata-csdl-json.html index ad3eaa72b..38ced93c3 100644 --- a/docs/odata-csdl-json/odata-csdl-json.html +++ b/docs/odata-csdl-json/odata-csdl-json.html @@ -3201,34 +3201,38 @@

14.4.12 Record

Example 87: this annotation “morphs” the entity type from example 13 into a structured type with two structural properties GivenName and Surname and two navigation properties DirectSupervisor and CostCenter. The first three properties simply rename properties of the annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service

-
"@person.Employee": {
-  "@type": "https://example.org/vocabs/person#org.example.person.Manager",
-  "@Core.Description": "Annotation on record",
-  "GivenName": {
-    "$Path": "FirstName"
-  },
-  "GivenName@Core.Description": "Annotation on record member",
-  "Surname": {
-    "$Path": "LastName"
-  },
-  "DirectSupervisor": {
-    "$Path": "Manager"
-  },
-  "CostCenter": {
-    "$UrlRef": {
-      "$Apply": [
-        "http://host/anotherservice/CostCenters('{ccid}')",
-        {
-          "$LabeledElement": {
-            "$Path": "CostCenterID"
-          },
-          "$Name": "ccid"
-        }
-      ],
-      "$Function": "odata.fillUriTemplate"
-    }
-  }
-}
+
"$Annotations": {
+  "org.example.Person": {
+    "@org.example.hcm.Employee": {
+      "@type": "https://example.org/vocabs/person#org.example.person.Manager",
+      "@Core.Description": "Annotation on record",
+      "GivenName": {
+        "$Path": "FirstName"
+      },
+      "GivenName@Core.Description": "Annotation on record member",
+      "Surname": {
+        "$Path": "LastName"
+      },
+      "DirectSupervisor": {
+        "$Path": "Manager"
+      },
+      "CostCenter": {
+        "$UrlRef": {
+          "$Apply": [
+            "http://host/anotherservice/CostCenters('{ccid}')",
+            {
+              "$LabeledElement": {
+                "$Path": "CostCenterID"
+              },
+              "$Name": "ccid"
+            }
+          ],
+          "$Function": "odata.fillUriTemplate"
+        }
+      }
+    }
+  }
+}

14.4.13 URL Reference

The URL reference expression enables a value to be obtained by sending a GET request.

diff --git a/docs/odata-csdl-json/odata-csdl-json.md b/docs/odata-csdl-json/odata-csdl-json.md index 71e397f61..0b4ed90d2 100644 --- a/docs/odata-csdl-json/odata-csdl-json.md +++ b/docs/odata-csdl-json/odata-csdl-json.md @@ -5383,31 +5383,35 @@ a structured type with two structural properties `GivenName` and annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service ```json -"@person.Employee": { - "@type": "https://example.org/vocabs/person#org.example.person.Manager", - "@Core.Description": "Annotation on record", - "GivenName": { - "$Path": "FirstName" - }, - "GivenName@Core.Description": "Annotation on record member", - "Surname": { - "$Path": "LastName" - }, - "DirectSupervisor": { - "$Path": "Manager" - }, - "CostCenter": { - "$UrlRef": { - "$Apply": [ - "http://host/anotherservice/CostCenters('{ccid}')", - { - "$LabeledElement": { - "$Path": "CostCenterID" - }, - "$Name": "ccid" +"$Annotations": { + "org.example.Person": { + "@org.example.hcm.Employee": { + "@type": "https://example.org/vocabs/person#org.example.person.Manager", + "@Core.Description": "Annotation on record", + "GivenName": { + "$Path": "FirstName" + }, + "GivenName@Core.Description": "Annotation on record member", + "Surname": { + "$Path": "LastName" + }, + "DirectSupervisor": { + "$Path": "Manager" + }, + "CostCenter": { + "$UrlRef": { + "$Apply": [ + "http://host/anotherservice/CostCenters('{ccid}')", + { + "$LabeledElement": { + "$Path": "CostCenterID" + }, + "$Name": "ccid" + } + ], + "$Function": "odata.fillUriTemplate" } - ], - "$Function": "odata.fillUriTemplate" + } } } } diff --git a/docs/odata-csdl-xml/odata-csdl-xml.html b/docs/odata-csdl-xml/odata-csdl-xml.html index 4efcaa357..7908b1256 100644 --- a/docs/odata-csdl-xml/odata-csdl-xml.html +++ b/docs/odata-csdl-xml/odata-csdl-xml.html @@ -2984,25 +2984,27 @@

Example 87: this annotation “morphs” the entity type from example 13 into a structured type with two structural properties GivenName and Surname and two navigation properties DirectSupervisor and CostCenter. The first three properties simply rename properties of the annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service

-
<Annotation Term="org.example.person.Employee">
-  <Record>
-    <Annotation Term="Core.Description" String="Annotation on record" />
-    <PropertyValue Property="GivenName" Path="FirstName">
-      <Annotation Term="Core.Description"
-                  String="Annotation on record member" />
-    </PropertyValue>
-    <PropertyValue Property="Surname" Path="LastName" />
-    <PropertyValue Property="DirectSupervisor" Path="Manager" />
-    <PropertyValue Property="CostCenter">
-      <UrlRef>
-        <Apply Function="odata.fillUriTemplate">
-          <String>http://host/anotherservice/CostCenters('{ccid}')</String>
-          <LabeledElement Name="ccid" Path="CostCenterID" />
-        </Apply>
-      </UrlRef>
-    </PropertyValue>
-  </Record>
-</Annotation>
+
<Annotations Target="org.example.Person">
+  <Annotation Term="org.example.hcm.Employee">
+    <Record Type="org.example.hcm.Manager">
+      <Annotation Term="Core.Description" String="Annotation on record" />
+      <PropertyValue Property="GivenName" Path="FirstName">
+        <Annotation Term="Core.Description"
+                    String="Annotation on record member" />
+      </PropertyValue>
+      <PropertyValue Property="Surname" Path="LastName" />
+      <PropertyValue Property="DirectSupervisor" Path="Manager" />
+      <PropertyValue Property="CostCenter">
+        <UrlRef>
+          <Apply Function="odata.fillUriTemplate">
+            <String>http://host/anotherservice/CostCenters('{ccid}')</String>
+            <LabeledElement Name="ccid" Path="CostCenterID" />
+          </Apply>
+        </UrlRef>
+      </PropertyValue>
+    </Record>
+  </Annotation>
+</Annotations>

14.4.13 URL Reference

The URL reference expression enables a value to be obtained by sending a GET request.

diff --git a/docs/odata-csdl-xml/odata-csdl-xml.md b/docs/odata-csdl-xml/odata-csdl-xml.md index 50714c646..8fe7faf7c 100644 --- a/docs/odata-csdl-xml/odata-csdl-xml.md +++ b/docs/odata-csdl-xml/odata-csdl-xml.md @@ -5212,25 +5212,27 @@ a structured type with two structural properties `GivenName` and annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service ```xml - - - - - - - - - - - - http://host/anotherservice/CostCenters('{ccid}') - - - - - - + + + + + + + + + + + + + http://host/anotherservice/CostCenters('{ccid}') + + + + + + + ``` ::: diff --git a/odata-csdl/14 Vocabulary and Annotation.md b/odata-csdl/14 Vocabulary and Annotation.md index c90f0429a..02ef3e82d 100644 --- a/odata-csdl/14 Vocabulary and Annotation.md +++ b/odata-csdl/14 Vocabulary and Annotation.md @@ -2973,31 +2973,35 @@ a structured type with two structural properties `GivenName` and annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service ```json -"@person.Employee": { - "@type": "https://example.org/vocabs/person#org.example.person.Manager", - "@Core.Description": "Annotation on record", - "GivenName": { - "$Path": "FirstName" - }, - "GivenName@Core.Description": "Annotation on record member", - "Surname": { - "$Path": "LastName" - }, - "DirectSupervisor": { - "$Path": "Manager" - }, - "CostCenter": { - "$UrlRef": { - "$Apply": [ - "http://host/anotherservice/CostCenters('{ccid}')", - { - "$LabeledElement": { - "$Path": "CostCenterID" - }, - "$Name": "ccid" +"$Annotations": { + "org.example.Person": { + "@org.example.hcm.Employee": { + "@type": "https://example.org/vocabs/person#org.example.person.Manager", + "@Core.Description": "Annotation on record", + "GivenName": { + "$Path": "FirstName" + }, + "GivenName@Core.Description": "Annotation on record member", + "Surname": { + "$Path": "LastName" + }, + "DirectSupervisor": { + "$Path": "Manager" + }, + "CostCenter": { + "$UrlRef": { + "$Apply": [ + "http://host/anotherservice/CostCenters('{ccid}')", + { + "$LabeledElement": { + "$Path": "CostCenterID" + }, + "$Name": "ccid" + } + ], + "$Function": "odata.fillUriTemplate" } - ], - "$Function": "odata.fillUriTemplate" + } } } } @@ -3038,25 +3042,27 @@ a structured type with two structural properties `GivenName` and annotated entity type, the fourth adds a calculated navigation property that is pointing to a different service ```xml - - - - - - - - - - - - http://host/anotherservice/CostCenters('{ccid}') - - - - - - + + + + + + + + + + + + + http://host/anotherservice/CostCenters('{ccid}') + + + + + + + ``` :::