You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2015/10/26 16:05:27 UTC
[jira] [Resolved] (OLINGO-587) "name" Fields in Service Document
cannot be set explicitly
[ https://issues.apache.org/jira/browse/OLINGO-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Amend resolved OLINGO-587.
------------------------------------
Resolution: Fixed
Assignee: Christian Amend
Fix Version/s: (Java) V4 4.1.0
Hi,
thanks for the contribution. I really liked that you provided a test as well.
I resolved this with this commit: https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=26c67648468471149e32016f4892d484a5447bb8
I also added the functionallity for Singletons and FunctionImprots as both can have a title field as well. Let me know if everything works for you :)
Best Regards,
Christian
> "name" Fields in Service Document cannot be set explicitly
> ----------------------------------------------------------
>
> Key: OLINGO-587
> URL: https://issues.apache.org/jira/browse/OLINGO-587
> Project: Olingo
> Issue Type: New Feature
> Components: odata4-server
> Affects Versions: (Java) V4 4.0.0-beta-03
> Reporter: Michael Burwig
> Assignee: Christian Amend
> Priority: Minor
> Labels: features
> Fix For: (Java) V4 4.1.0
>
> Attachments: OLINGO-587_patch.diff
>
>
> The OData service document is expected to expose a "name" and "url" Key-Value pair for each Entity Collection. Currently, org.apache.olingo.server.core.serializer.json.ServiceDocumentJsonSerializer.writeEntitySets(JsonGenerator, Edm) simply assigns the respective entity set name to both fields. It would be a very useful feature to have something like an "entity set label" as a member variable of org.apache.olingo.commons.api.edm.EdmEntitySet. This "label" then would provide the value for the "name" field in the service document.
> Keep up the good work!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)