[ 
https://issues.apache.org/jira/browse/OLINGO-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16106766#comment-16106766
 ] 

Ramya commented on OLINGO-1129:
-------------------------------

Hi Hui Wang,
This is strange actually because I am not able to reproduce the issue. The 
actual type of the inner entity gets resolved within the writeEntity method.
Have you taken the latest code and tried this. It may solve your problem.
You could apply the commits 
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=ecf7f56ec8e8a92164fe31dce66a9b42a59d4333
 and
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=f6dd0deacc27a21ec2273cb58735005712fe1dd7

Regards,
Ramya

> ODataJsonSerializer Does Not Support Derived Type in $expand Option
> -------------------------------------------------------------------
>
>                 Key: OLINGO-1129
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1129
>             Project: Olingo
>          Issue Type: New Feature
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.3.0
>            Reporter: Hui Wang
>            Priority: Minor
>
> Currently we need to use type casting to a derived type in $expand. Here is 
> the corresponding part in the OData Protocol. 
> http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part2-url-conventions/odata-v4.0-errata03-os-part2-url-conventions-complete.html#_Toc453752352
> To reproduce: 
> Here is an example URL provided in the documentation that could be used for 
> reproducing the defect: 
> http://host/service/Orders?$expand=Customer/Model.VipCustomer
> In the current 4.3 version, ODataJsonSerializer only deals with expand on 
> Customer but ignores the type filter Model.VipCustomer. It means, the 
> response would only show the content of super type Customer. Any custom 
> properties in derived type VipCustomer wouldn't be returned. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to