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

Multiple navigationpropertybindings for the same navigation property should be prohibited

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      [Proposed]

      Description

      ODATA-24 simplifies relationships by moving association information into the navigation property. The missing piece of information; the entityset in which to find the related entity, is added through a "navigationpropertybinding" element within the EntitySet definition.

      There are cases where the entity set of the target entit(ies) may not be known (i.e., containment, or when the targets may come from multiple different entitysets). To address these cases, the navigationpropertybinding was made optional in ODATA-24, to be provided when the target entities came from the same entityset.

      The application of ODATA-24 contemplates an intermediate state, where the target entities may come from a fixed set of multiple entity sets, by allowing multiple navigationpropertybindings for the same navigation property. However, this information doesn't seem very useful, as the client wouldn't know, for any particular instance, which of the multiple entitysets the instance belonged to. Thus, allowing multiple navigationpropertybindings for the same navigation property seems to add unnecessary complexity for little or no added benefit.

        Attachments

          Activity

          mikep Michael Pizzo (Inactive) created issue -
          ralfhandl Ralf Handl made changes -
          Field Original Value New Value
          Component/s OData CSDL v1.0 [ 10268 ]
          ralfhandl Ralf Handl made changes -
          Fix Version/s WD01 [ 10247 ]
          Affects Version/s WD01 [ 10247 ]
          ralfhandl Ralf Handl made changes -
          Proposal Don't allow multiple navigationpropertybindings for a single navigationproperty. Navigationpropertybindings are used only when all related entities are known to come from a single entity set. Don't allow multiple navigationpropertybindings for a single navigationproperty. Navigationpropertybindings are used only when all related entities are known to come from a single entity set.

          Accepted: https://www.oasis-open.org/apps/org/workgroup/odata/download.php/47861/latest/odata-meeting-20_on-20130110-minutes.html
          Status New [ 10000 ] Open [ 1 ]
          ralfhandl Ralf Handl made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          ralfhandl Ralf Handl made changes -
          Assignee Ralf Handl [ ralfhandl ]
          handl Ralf Handl made changes -
          Assignee Ralf Handl [ ralfhandl ] Ralf Handl [ handl ]

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              mikep Michael Pizzo (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: