<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
  <edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_CAPABILITIES',Version='0001',SAP__Origin='LOCAL')/$value">
    <edmx:Include Namespace="Org.OData.Capabilities.V1"/>
  </edmx:Reference>
  <edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_CORE',Version='0001',SAP__Origin='LOCAL')/$value">
    <edmx:Include Namespace="Org.OData.Core.V1"/>
  </edmx:Reference>
  <edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_COMMON',Version='0001',SAP__Origin='LOCAL')/$value">
    <edmx:Include Namespace="com.sap.vocabularies.Common.v1"/>
  </edmx:Reference>
  <edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_COMMUNICATION',Version='0001',SAP__Origin='LOCAL')/$value">
    <edmx:Include Namespace="com.sap.vocabularies.Communication.v1"/>
  </edmx:Reference>
  <edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_MEASURES',Version='0001',SAP__Origin='LOCAL')/$value">
    <edmx:Include Namespace="Org.OData.Measures.V1"/>
  </edmx:Reference>
  <edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_UI',Version='0001',SAP__Origin='LOCAL')/$value">
    <edmx:Include Namespace="com.sap.vocabularies.UI.v1"/>
  </edmx:Reference>
  <edmx:Reference Uri="/sap/opu/odata/IWBEP/GWSAMPLE_BASIC">
    <edmx:Include Namespace="GWSAMPLE_BASIC"/>
  </edmx:Reference>
  <edmx:DataServices>
    <Schema Namespace="zanno4sample_anno_mdl.v1" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <!--Annotations Target="GWSAMPLE_BASIC.Product">
        <Annotation Term="com.sap.vocabularies.UI.v1.HeaderInfo">
          <Record Type="com.sap.vocabularies.UI.v1.HeaderInfoType">
            <PropertyValue Property="TypeName" String="Product"/>
            <PropertyValue Property="TypeNamePlural" String="Products"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Product Name"/>
                <PropertyValue Path="Name" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="Description">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Product Description"/>
                <PropertyValue Path="Description" Property="Value"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Badge">
          <Record Type="com.sap.vocabularies.UI.v1.BadgeType">
            <PropertyValue Path="ProductID" Property="HeadLine"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Product Name"/>
                <PropertyValue Path="Name" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="MainInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Price"/>
                <PropertyValue Path="Price" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="SecondaryInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Dimensions"/>
                <PropertyValue Property="Value">
                  <Apply Function="odata.concat">
                    <Path>Width</Path>
                    <String>/</String>
                    <Path>Depth</Path>
                    <String>/</String>
                    <Path>Height</Path>
                  </Apply>
                </PropertyValue>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.DataPoint">
          <Record Type="com.sap.vocabularies.UI.v1.DataPointType">
            <PropertyValue Property="Title" String="Weight"/>
            <PropertyValue Path="Name" Property="Description"/>
            <PropertyValue Path="WeightMeasure" Property="Value"/>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Identification">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Product ID"/>
              <PropertyValue Path="ProductID" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Category"/>
              <PropertyValue Path="Category" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Supplier"/>
              <PropertyValue Path="SupplierName" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Weight"/>
              <PropertyValue Path="WeightMeasure" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Unit Price"/>
              <PropertyValue Path="Price" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.LineItem">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Product ID"/>
              <PropertyValue Path="ProductID" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Category"/>
              <PropertyValue Path="Category" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Product Name"/>
              <PropertyValue Path="Name" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Supplier"/>
              <PropertyValue Path="SupplierName" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Unit Price"/>
              <PropertyValue Path="Price" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Weight"/>
              <PropertyValue Path="WeightMeasure" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Width"/>
              <PropertyValue Path="Width" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Depth"/>
              <PropertyValue Path="Depth" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Height"/>
              <PropertyValue Path="Height" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Qualifier="Dimensions" Term="com.sap.vocabularies.UI.v1.FieldGroup">
          <Record Type="com.sap.vocabularies.UI.v1.FieldGroupType">
            <PropertyValue Property="Label" String="Dimensions"/>
            <PropertyValue Property="Data">
              <Collection>
                <Record Type="com.sap.vocabularies.UI.v1.DataField">
                  <PropertyValue Property="Label" String="Width"/>
                  <PropertyValue Path="Width" Property="Value"/>
                </Record>
                <Record Type="com.sap.vocabularies.UI.v1.DataField">
                  <PropertyValue Property="Label" String="Depth"/>
                  <PropertyValue Path="Depth" Property="Value"/>
                </Record>
                <Record Type="com.sap.vocabularies.UI.v1.DataField">
                  <PropertyValue Property="Label" String="Height"/>
                  <PropertyValue Path="Height" Property="Value"/>
                </Record>
              </Collection>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Facets">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.CollectionFacet">
              <PropertyValue Property="Label" String="Supplier"/>
              <PropertyValue Property="Facets">
                <Collection>
                  <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
                    <PropertyValue Property="Label" String="Address"/>
                    <PropertyValue AnnotationPath="ToSupplier/@com.sap.vocabularies.Communication.v1.Address" Property="Target"/>
                  </Record>
                  <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
                    <PropertyValue Property="Label" String="Contact Data"/>
                    <PropertyValue AnnotationPath="ToSupplier/@com.sap.vocabularies.UI.v1.Badge" Property="Target"/>
                  </Record>
                </Collection>
              </PropertyValue>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
              <PropertyValue Property="Label" String="Dimensions"/>
              <PropertyValue AnnotationPath="@com.sap.vocabularies.UI.v1.FieldGroup#Dimensions" Property="Target"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations-->
      <!--Annotations Target="GWSAMPLE_BASIC.SalesOrder/GrossAmount">
        <Annotation Path="CurrencyCode" Term="Org.OData.Measures.V1.ISOCurrency"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrder/NetAmount">
        <Annotation Path="CurrencyCode" Term="Org.OData.Measures.V1.ISOCurrency"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrder/TaxAmount">
        <Annotation Path="CurrencyCode" Term="Org.OData.Measures.V1.ISOCurrency"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrder/LifecycleStatus">
        <Annotation Path="LifecycleStatusDescription" Term="com.sap.vocabularies.Common.v1.Text"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrder/BillingStatus">
        <Annotation Path="BillingStatusDescription" Term="com.sap.vocabularies.Common.v1.Text"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrder/DeliveryStatus">
        <Annotation Path="DeliveryStatusDescription" Term="com.sap.vocabularies.Common.v1.Text"/>
      </Annotations-->
      <Annotations Target="GWSAMPLE_BASIC.SalesOrder/DeliveryStatus">
        <Annotation Term="com.sap.vocabularies.Common.v1.Text">
          <If>
            <Or>
              <Eq>
                <Path>DeliveryStatus</Path>
                <String/>
              </Eq>
              <Eq>
                <Path>DeliveryStatus</Path>
                <Null/>
              </Eq>
            </Or>
            <String>Not delivered</String>
            <Path>DeliveryStatusDescription</Path>
          </If>
        </Annotation>
      </Annotations>
      <!--Annotations Target="GWSAMPLE_BASIC.SalesOrder/CreatedAt">
        <Annotation EnumMember="Common.FieldControlType/ReadOnly" Term="com.sap.vocabularies.Common.v1.FieldControl"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrder">
        <Annotation Term="com.sap.vocabularies.UI.v1.HeaderInfo">
          <Record Type="com.sap.vocabularies.UI.v1.HeaderInfoType">
            <PropertyValue Property="TypeName" String="Sales Order"/>
            <PropertyValue Property="TypeNamePlural" String="Sales Orders"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Order ID"/>
                <PropertyValue Path="SalesOrderID" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="Description">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Customer"/>
                <PropertyValue Path="CustomerName" Property="Value"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Badge">
          <Record Type="com.sap.vocabularies.UI.v1.BadgeType">
            <PropertyValue Path="SalesOrderID" Property="HeadLine"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Customer"/>
                <PropertyValue Path="CustomerName" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="MainInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Gross Amount"/>
                <PropertyValue Path="GrossAmount" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="SecondaryInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Status"/>
                <PropertyValue Path="LifecycleStatus" Property="Value"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Qualifier="Status" Term="com.sap.vocabularies.UI.v1.DataPoint">
          <Record Type="com.sap.vocabularies.UI.v1.DataPointType">
            <PropertyValue Property="Title" String="Overall Status"/>
            <PropertyValue Path="LifecycleStatusDescription" Property="Value"/>
          </Record>
        </Annotation>
        <Annotation Qualifier="Amount" Term="com.sap.vocabularies.UI.v1.DataPoint">
          <Record Type="com.sap.vocabularies.UI.v1.DataPointType">
            <PropertyValue Property="Title" String="Gross Amount"/>
            <PropertyValue Path="GrossAmount" Property="Value"/>
            <PropertyValue Property="CriticalityCalculation">
              <Record Type="com.sap.vocabularies.UI.v1.CriticalityCalculationType">
                <PropertyValue EnumMember="com.sap.vocabularies.UI.v1.CriticalityCalculationType/Maximize" Property="ImprovementDirection"/>
                <PropertyValue Int="5000" Property="ToleranceRangeLowValue"/>
                <PropertyValue Int="500" Property="DeviationRangeLowValue"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Identification">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Customer ID"/>
              <PropertyValue Path="CustomerID" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Gross Amount"/>
              <PropertyValue Path="GrossAmount" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Status"/>
              <PropertyValue Path="LifecycleStatus" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Created at"/>
              <PropertyValue Path="CreatedAt" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Changed at"/>
              <PropertyValue Path="ChangedAt" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.LineItem">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Order ID"/>
              <PropertyValue Path="SalesOrderID" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Customer"/>
              <PropertyValue Path="CustomerName" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Gross Amt."/>
              <PropertyValue Path="GrossAmount" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Net Amt."/>
              <PropertyValue Path="NetAmount" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Status"/>
              <PropertyValue Path="LifecycleStatus" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Created at"/>
              <PropertyValue Path="CreatedAt" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Changed at"/>
              <PropertyValue Path="ChangedAt" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.StatusInfo">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Overall Status"/>
              <PropertyValue Path="LifecycleStatus" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Billing Status"/>
              <PropertyValue Path="BillingStatus" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Delivery Status"/>
              <PropertyValue Path="DeliveryStatus" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Qualifier="Note" Term="com.sap.vocabularies.UI.v1.FieldGroup">
          <Record Type="com.sap.vocabularies.UI.v1.FieldGroupType">
            <PropertyValue Property="Label" String="Order Note"/>
            <PropertyValue Property="Data">
              <Collection>
                <Record Type="com.sap.vocabularies.UI.v1.DataField">
                  <PropertyValue Property="Label" String="Text"/>
                  <PropertyValue Path="Note" Property="Value"/>
                </Record>
              </Collection>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Facets">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
              <PropertyValue Property="Label" String="Items"/>
              <PropertyValue AnnotationPath="ToLineItems/@com.sap.vocabularies.UI.v1.LineItem" Property="Target"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
              <PropertyValue Property="Label" String="Status Information"/>
              <PropertyValue AnnotationPath="@com.sap.vocabularies.UI.v1.StatusInfo" Property="Target"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
              <PropertyValue Property="Label" String="Note"/>
              <PropertyValue AnnotationPath="@com.sap.vocabularies.UI.v1.FieldGroup#Note" Property="Target"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations-->
      <!--Annotations Target="GWSAMPLE_BASIC.SalesOrderLineItem/GrossAmount">
        <Annotation Path="CurrencyCode" Term="Org.OData.Measures.V1.ISOCurrency"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrderLineItem/NetAmount">
        <Annotation Path="CurrencyCode" Term="Org.OData.Measures.V1.ISOCurrency"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrderLineItem/TaxAmount">
        <Annotation Path="CurrencyCode" Term="Org.OData.Measures.V1.ISOCurrency"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrderLineItem/Quantity">
        <Annotation Path="QunatityUnit" Term="Org.OData.Measures.V1.Unit"/>
      </Annotations>
      <Annotations Target="GWSAMPLE_BASIC.SalesOrderLineItem">
        <Annotation Term="com.sap.vocabularies.UI.v1.HeaderInfo">
          <Record Type="com.sap.vocabularies.UI.v1.HeaderInfoType">
            <PropertyValue Property="TypeName" String="Sales Order Item"/>
            <PropertyValue Property="TypeNamePlural" String="Sales Order Items"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Product"/>
                <PropertyValue Path="ProductID" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="Description">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Quantity"/>
                <PropertyValue Path="Quantity" Property="Value"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Badge">
          <Record Type="com.sap.vocabularies.UI.v1.BadgeType">
            <PropertyValue Property="HeadLine">
              <Apply Function="odata.concat">
                <Path>SalesOrderID</Path>
                <String>/</String>
                <Path>ItemPosition</Path>
              </Apply>
            </PropertyValue>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Product"/>
                <PropertyValue Path="ProductID" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="MainInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Quantity"/>
                <PropertyValue Path="Quantity" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="SecondaryInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Gross Amount"/>
                <PropertyValue Path="GrossAmount" Property="Value"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Identification">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Item"/>
              <PropertyValue Path="ItemPosition" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Gross Amount"/>
              <PropertyValue Path="GrossAmount" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Delivery"/>
              <PropertyValue Path="DeliveryDate" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.LineItem">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Item"/>
              <PropertyValue Property="Value">
                <Apply Function="odata.concat">
                  <Path>SalesOrderID</Path>
                  <String>/</String>
                  <Path>ItemPosition</Path>
                </Apply>
              </PropertyValue>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Product ID"/>
              <PropertyValue Path="ProductID" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Quantity"/>
              <PropertyValue Path="Quantity" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Net Amt."/>
              <PropertyValue Path="NetAmount" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Gross Amt."/>
              <PropertyValue Path="GrossAmount" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Time Stamp"/>
              <PropertyValue Path="DeliveryDate" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Qualifier="Note" Term="com.sap.vocabularies.UI.v1.FieldGroup">
          <Record Type="com.sap.vocabularies.UI.v1.FieldGroupType">
            <PropertyValue Property="Label" String="Order Note"/>
            <PropertyValue Property="Data">
              <Collection>
                <Record Type="com.sap.vocabularies.UI.v1.DataField">
                  <PropertyValue Property="Label" String="Text"/>
                  <PropertyValue Path="Note" Property="Value"/>
                </Record>
              </Collection>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Facets">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
              <PropertyValue Property="Label" String="Note"/>
              <PropertyValue AnnotationPath="@com.sap.vocabularies.UI.v1.FieldGroup#Note" Property="Target"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations-->
      <!--Annotations Target="GWSAMPLE_BASIC.BusinessPartner">
        <Annotation Term="com.sap.vocabularies.UI.v1.HeaderInfo">
          <Record Type="com.sap.vocabularies.UI.v1.HeaderInfoType">
            <PropertyValue Property="TypeName" String="Business Partner"/>
            <PropertyValue Property="TypeNamePlural" String="Business Partners"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Name"/>
                <PropertyValue Property="Value">
                  <Apply Function="odata.concat">
                    <Path>CompanyName</Path>
                    <String/>
                    <Path>LegalForm</Path>
                  </Apply>
                </PropertyValue>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Badge">
          <Record Type="com.sap.vocabularies.UI.v1.BadgeType">
            <PropertyValue Path="BusinessPartnerID" Property="HeadLine"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Name"/>
                <PropertyValue Property="Value">
                  <Apply Function="odata.concat">
                    <Path>CompanyName</Path>
                    <String/>
                    <Path>LegalForm</Path>
                  </Apply>
                </PropertyValue>
              </Record>
            </PropertyValue>
            <PropertyValue Property="MainInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Phone"/>
                <PropertyValue Path="PhoneNumber" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="SecondaryInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Web"/>
                <PropertyValue Path="WebAddress" Property="Value"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Identification">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="ID"/>
              <PropertyValue Path="BusinessPartnerID" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataFieldForAnnotation">
              <PropertyValue Property="Label" String="Address"/>
              <PropertyValue AnnotationPath="@com.sap.vocabularies.Communication.v1.Address" Property="Target"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataFieldWithUrl">
              <PropertyValue Property="Label" String="Link to"/>
              <PropertyValue Property="Value" String="Google Maps"/>
              <PropertyValue Property="Url">
                 <Apply Function="odata.fillUriTemplate">
                   <String>https://www.google.de/maps/place/{street},{city}</String>
                   <LabeledElement Name="street">
                     <Apply Function="odata.uriEncode">
                       <Path>Address/Street</Path>
                     </Apply>
                   </LabeledElement>
                   <LabeledElement Name="city">
                     <Apply Function="odata.uriEncode">
                       <Path>Address/City</Path>
                     </Apply>
                   </LabeledElement>
                 </Apply>
              </PropertyValue>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.LineItem">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="ID"/>
              <PropertyValue Path="BusinessPartnerID" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Company Name"/>
              <PropertyValue Property="Value">
                <Apply Function="odata.concat">
                  <Path>CompanyName</Path>
                  <String/>
                  <Path>LegalForm</Path>
                </Apply>
              </PropertyValue>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Phone No."/>
              <PropertyValue Path="PhoneNumber" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Currency"/>
              <PropertyValue Path="CurrencyCode" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Role"/>
              <PropertyValue Path="BusinessPartnerRole" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.Communication.v1.Address">
          <Record Type="com.sap.vocabularies.Communication.v1.AddressType">
            <PropertyValue Path="Address/Street" Property="street"/>
            <PropertyValue Path="Address/City" Property="locality"/>
            <PropertyValue Path="Address/PostalCode" Property="code"/>
            <PropertyValue Path="Address/Country" Property="country"/>
            <PropertyValue Property="ext">
              <Apply Function="odata.concat">
                <String>Building</String>
                <Path>Address/Building</Path>
              </Apply>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Facets">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
              <PropertyValue Property="Label" String="Contacts"/>
              <PropertyValue AnnotationPath="ToContacts/@com.sap.vocabularies.UI.v1.Badge" Property="Target"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.ReferenceFacet">
              <PropertyValue Property="Label" String="Products"/>
              <PropertyValue AnnotationPath="ToProducts/@com.sap.vocabularies.UI.v1.LineItem" Property="Target"/>
            </Record>
          </Collection>
        </Annotation>
      </Annotations-->
      <Annotations Target="GWSAMPLE_BASIC.Contact">
        <Annotation Term="com.sap.vocabularies.UI.v1.HeaderInfo">
          <Record Type="com.sap.vocabularies.UI.v1.HeaderInfoType">
            <PropertyValue Property="TypeName" String="{@i18n>@Contact}"/>
            <PropertyValue Property="TypeNamePlural" String="{@i18n>@Contacts}"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Name"/>
                <PropertyValue Property="Value">
                  <Apply Function="odata.concat">
                    <If>
                      <Eq>
                        <Path>Sex</Path>
                        <String>M</String>
                      </Eq>
                      <String>{@i18n>@Mr}</String>
                      <If>
                        <Eq>
                          <Path>Sex</Path>
                          <String>F</String>
                        </Eq>
                        <String>{@i18n>@Mrs}</String>
                        <String></String>
                      </If>
                    </If>
                    <String> </String>
                    <Path>FirstName</Path>
                    <String> </String>
                    <Path>LastName</Path>
                  </Apply>
                </PropertyValue>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <!--Annotation Term="com.sap.vocabularies.UI.v1.Badge">
          <Record Type="com.sap.vocabularies.UI.v1.BadgeType">
            <PropertyValue Path="ToBusinessPartner/CompanyName" Property="HeadLine"/>
            <PropertyValue Property="Title">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Name"/>
                <PropertyValue Property="Value">
                  <Apply Function="odata.concat">
                    <Path>FirstName</Path>
                    <String/>
                    <Path>LastName</Path>
                  </Apply>
                </PropertyValue>
              </Record>
            </PropertyValue>
            <PropertyValue Property="MainInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Phone"/>
                <PropertyValue Path="PhoneNumber" Property="Value"/>
              </Record>
            </PropertyValue>
            <PropertyValue Property="SecondaryInfo">
              <Record Type="com.sap.vocabularies.UI.v1.DataField">
                <PropertyValue Property="Label" String="Email"/>
                <PropertyValue Path="EmailAddress" Property="Value"/>
              </Record>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.Identification">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataFieldForAnnotation">
              <PropertyValue Property="Label" String="Address"/>
              <PropertyValue AnnotationPath="@com.sap.vocabularies.Communication.v1.Address" Property="Target"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Path="ToBusinessPartner/CompanyName" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Phone"/>
              <PropertyValue Path="PhoneNumber" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Email"/>
              <PropertyValue Path="EmailAddress" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.UI.v1.LineItem">
          <Collection>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Name"/>
              <PropertyValue Property="Value">
                <Apply Function="odata.concat">
                  <Path>FirstName</Path>
                  <String/>
                  <Path>LastName</Path>
                </Apply>
              </PropertyValue>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Company Name"/>
              <PropertyValue Path="ToBusinessPartner/CompanyName" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Phone No."/>
              <PropertyValue Path="PhoneNumber" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="Fax Number"/>
              <PropertyValue Path="FaxNumber" Property="Value"/>
            </Record>
            <Record Type="com.sap.vocabularies.UI.v1.DataField">
              <PropertyValue Property="Label" String="E-Mail Address"/>
              <PropertyValue Path="EmailAddress" Property="Value"/>
            </Record>
          </Collection>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.Communication.v1.Address">
          <Record Type="com.sap.vocabularies.Communication.v1.AddressType">
            <PropertyValue Path="Address/Street" Property="street"/>
            <PropertyValue Path="Address/City" Property="locality"/>
            <PropertyValue Path="Address/PostalCode" Property="code"/>
            <PropertyValue Path="Address/Country" Property="country"/>
            <PropertyValue Property="ext">
              <Apply Function="odata.concat">
                <String>Building</String>
                <Path>Address/Building</Path>
              </Apply>
            </PropertyValue>
          </Record>
        </Annotation>
        <Annotation Term="com.sap.vocabularies.Communication.v1.Contact">
          <Record Type="com.sap.vocabularies.Communication.v1.ContactType">
            <PropertyValue Property="fn">
              <Apply Function="odata.concat">
                <Path>Title</Path>
                <String/>
                <Path>FirstName</Path>
                <String/>
                <Path>MiddleName</Path>
                <String/>
                <Path>LastName</Path>
              </Apply>
            </PropertyValue>
            <PropertyValue Property="n">
              <Record Type="com.sap.vocabularies.Communication.v1.NameType">
                <PropertyValue Path="LastName" Property="surname"/>
                <PropertyValue Path="FirstName" Property="given"/>
                <PropertyValue Path="MiddleName" Property="additional"/>
                <PropertyValue Path="Title" Property="prefix"/>
              </Record>
            </PropertyValue>
            <PropertyValue Path="Nickname" Property="nickname"/>
            <PropertyValue Path="DateOfBirth" Property="bday"/>
            <PropertyValue Path="Sex" Property="gender"/>
            <PropertyValue Property="tel">
              <Collection>
                <Record Type="com.sap.vocabularies.Communication.v1.PhoneNumberType">
                  <PropertyValue Path="PhoneNumber" Property="uri"/>
                  <PropertyValue EnumMember="com.sap.vocabularies.Communication.v1.ContactInformationType/work" Property="type"/>
                </Record>
              </Collection>
            </PropertyValue>
            <PropertyValue Property="email">
              <Collection>
                <Record Type="com.sap.vocabularies.Communication.v1.EmailAddressType">
                  <PropertyValue Path="EmailAddress" Property="address"/>
                  <PropertyValue EnumMember="com.sap.vocabularies.Communication.v1.ContactInformationType/work com.sap.vocabularies.Communication.v1.ContactInformationType/preferred" Property="type"/>
                </Record>
              </Collection>
            </PropertyValue>
            <PropertyValue Property="adr">
              <Collection>
                <Record Type="com.sap.vocabularies.Communication.v1.AddressType">
                  <PropertyValue Path="Address/Street" Property="street"/>
                  <PropertyValue Path="Address/City" Property="locality"/>
                  <PropertyValue Path="Address/PostalCode" Property="code"/>
                  <PropertyValue Path="Address/Country" Property="country"/>
                  <PropertyValue Property="ext">
                    <Apply Function="odata.concat">
                      <String>Building</String>
                      <Path>Address/Building</Path>
                    </Apply>
                  </PropertyValue>
                </Record>
              </Collection>
            </PropertyValue>
          </Record>
        </Annotation-->
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>
