[ 
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)

Reply via email to