You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ramya (JIRA)" <ji...@apache.org> on 2018/03/19 11:30:00 UTC
[jira] [Created] (OLINGO-1248) OData V4: Navigation links are shown
when an entity is queried
Ramya created OLINGO-1248:
-----------------------------
Summary: OData V4: Navigation links are shown when an entity is queried
Key: OLINGO-1248
URL: https://issues.apache.org/jira/browse/OLINGO-1248
Project: Olingo
Issue Type: Bug
Reporter: Ramya
When metadata is of the form
<EntityType Name="Organization">
…
<Property Name="AdministrativeInformation" Type="com.AdministrativeInformation"/>
…
</EntityType>
…
<ComplexType Name="AdministrativeInformation">
<Property Name="Created" Type="com.ChangeInformation"/>
<Property Name="Updated" Type="com.ChangeInformation"/>
</ComplexType>
<ComplexType Name="ChangeInformation">
<Property Name="At" Type="Edm.DateTimeOffset" Precision="9"/>
<Property Name="By" Type="Edm.String" MaxLength="255"/>
<NavigationProperty Name="User" Type="com.Person"/>
</ComplexType>
And the url fired is Organizations('3')/AdministrativeInformation/Created?$format=application/json;odata.metadata=full, the navigation link created within the complex type Created is shown correctly
"User@odata.navigationLink": "Organizations('3')/AdministrativeInformation/Created/User"
However, when the url fired is /Organizations('3')?$format=application/json;odata.metadata=full, the navigation link is not shown.
This is because the writeComplex method writes the values within the complex property but does not add the navigation links
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)