You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "mibo (Jira)" <ji...@apache.org> on 2023/10/15 12:10:00 UTC
[jira] [Updated] (OLINGO-1548) Odata singletons are not retrieved when parsing TripPin Odata service using Odata v4 libs.
[ https://issues.apache.org/jira/browse/OLINGO-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
mibo updated OLINGO-1548:
-------------------------
Fix Version/s: (was: (Java) V4 4.8.0)
> Odata singletons are not retrieved when parsing TripPin Odata service using Odata v4 libs.
> ------------------------------------------------------------------------------------------
>
> Key: OLINGO-1548
> URL: https://issues.apache.org/jira/browse/OLINGO-1548
> Project: Olingo
> Issue Type: Bug
> Components: odata4-client
> Affects Versions: (Java) V4 4.8.0
> Reporter: Arul
> Priority: Minor
>
>
> We are trying to read metadata for [https://services.odata.org/V4/(S(qumvkqavql1jwrawmicd45j1))/TripPinServiceRW/$metadata]
> using below snippet of code.
>
> {code:java}
> ODataClient client = ODataClientFactory.getClient();
> this.edm = client.getReader().readMetadata(metadataStream);
> {code}
> As you can see above service has a 'Singleton" named "me". When we try to retrieve the singletons from EntityContainer we get nothing(as shown below).
> {code:java}
> edm.getSchemas().stream()
> .map(EdmSchema::getEntityContainer)
> .filter(Objects::nonNull).map(EdmEntityContainer::getSingletons)
> .flatMap(Collection::stream)
> .collect(Collectors.toList());{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)