Peter Lawrence created OLINGO-1305:
--------------------------------------

             Summary: Serializers not publishing all links of a ComplexType 
with navigationProperty collection
                 Key: OLINGO-1305
                 URL: https://issues.apache.org/jira/browse/OLINGO-1305
             Project: Olingo
          Issue Type: Bug
          Components: odata4-server
    Affects Versions: (Java) V4 4.5.0
            Reporter: Peter Lawrence


If a property is defined as a ComplexType as in the following metadata:

<ComplexType Name="employer">
 <NavigationProperty Name="contractEmployer" 
Type="Collection(northwind.Shipper)"/>
 <NavigationProperty Name="parttimeEmployer" 
Type="Collection(northwind.Supplier)"/>
 </ComplexType>
  
 Then the serializers (Json and Atom) serialize only one of the links 
associated with any entity with a property of type employer.

The process is as follows::

writeNavigationProperties invokes getNavigationLink  which invokes getOneByTitle

If the navigationProperty is defined as a collection should it not publish all 
links?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to