Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1570

Support of Alternate Keys from OData Version 4.01

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • odata4-server
    • None

    Description

      OData Version 4.01 defines Alternate Keys, which is a useful feature and should be implemented by OLingo.

      4.3.5 Alternate Keys

      In addition to the canonical (primary) key an entity set or entity type can specify one or more alternate keys with the Core.AlternateKeys term (see [OData-VocCore]). Entities can be addressed via an alternate key using the same parentheses-style convention as for the canonical key, with one difference: single-part alternate keys MUST specify the key property name to unambiguously determine the alternate key.

      Example 24: the same employee identified via the alternate key SSN, the canonical (primary) key ID using the non-canonical long form with specified key property name, and the canonical short form without key property name

      http://host/service/Employees(SSN='123-45-6789')

      http://host/service/Employees(ID='A1245')

      http://host/service/Employees('A1245')

      Attachments

        1. [OLINGO-1570]-proof_of_concept.patch
          20 kB
          Patrick Rosendaal

        Activity

          People

            Unassigned Unassigned
            Boris.Fierlings Boris Fierlings
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: