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

Allow eq/ne comparison of instances of same structured (complex or entity) type, allow eq/ne comparison with null for 0..1 nav props

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_OS
    • Fix Version/s: V4.01_WD01
    • Component/s: URL Conventions
    • Labels:
    • Environment:

      [Proposed] Complex Types

    • Proposal:
      Hide

      can compare ordered collections: same members, same position
      can compare unordered collections: same members, any order. don't expect this to work though...
      can compare complex types by value (may fail if complex type contains unordered collection)
      -single-valued navigation properties reference the same entities
      -any collections of entities compare as equal
      -if unordered, reference the same entities in any order
      -if ordered, reference the same entities in same order
      can compare two entities (as being the same reference)
      ex: Person(1)/BestFriend eq Person(2)/WorstEnemy
      ex: Person(1)/BestFriend eq

      {"@odata.id":"/People(1)"}

      can compare entities to null:
      ex: Person(1)/BestFriend eq null

      Show
      can compare ordered collections: same members, same position can compare unordered collections: same members, any order. don't expect this to work though... can compare complex types by value (may fail if complex type contains unordered collection) -single-valued navigation properties reference the same entities -any collections of entities compare as equal -if unordered, reference the same entities in any order -if ordered, reference the same entities in same order can compare two entities (as being the same reference) ex: Person(1)/BestFriend eq Person(2)/WorstEnemy ex: Person(1)/BestFriend eq {"@odata.id":"/People(1)"} can compare entities to null: ex: Person(1)/BestFriend eq null
    • Resolution:
      Show
      https://www.oasis-open.org/apps/org/workgroup/odata/download.php/59028/odata-v4.01-wd01-part1-protocol.docx https://www.oasis-open.org/apps/org/workgroup/odata/download.php/59029/odata-v4.01-wd01-part2-url-conventions.docx

      Description

      These are natural extensions of the query language

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: