Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-1397

Example 86 applies an entity type as term

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: CSDL JSON , CSDL XML
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      Extend the example to

      <Annotations Target="org.example.Person">
        <Annotation Term="org.example.hcm.Employee">
          ...
      </Annotations>
      

      Explain that the term org.example.hcm.Employee is of structured type. Introduce notion of an entity-valued annotation.

      This may be less confusing because we use org.example.hcm as a term namespace in Example 5.

      Alternative: go all the way and give the definition of term org.example.hcm.Employee and its type in an additional code block within this example.

      Show
      Extend the example to <Annotations Target= "org.example.Person" > <Annotation Term= "org.example.hcm.Employee" > ... </Annotations> Explain that the term org.example.hcm.Employee is of structured type. Introduce notion of an entity-valued annotation. This may be less confusing because we use org.example.hcm as a term namespace in Example 5. Alternative: go all the way and give the definition of term org.example.hcm.Employee and its type in an additional code block within this example.

      Description

      Example 86 shows an annotation and uses an entity type as term:

      <Annotation Term="org.example.person.Employee">

      ...

      This is in conflict with 14.2 Annotation where the Term attribute is defined as a reference to a Term definition.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gerald.krause1 Gerald Krause
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: