You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Barış Arslan (JIRA)" <ji...@apache.org> on 2017/05/02 15:21:04 UTC
[jira] [Resolved] (OLINGO-1115) ComplexTypes usage in Olingo 4.3.0
[ https://issues.apache.org/jira/browse/OLINGO-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Barış Arslan resolved OLINGO-1115.
----------------------------------
Resolution: Fixed
I have found the problem. We have to override getComplexType method to get complex types. I used my internal method to get complex types. You can see in example getBinType. Therefore, olingo library could not find the related complex types during processing.
> ComplexTypes usage in Olingo 4.3.0
> ----------------------------------
>
> Key: OLINGO-1115
> URL: https://issues.apache.org/jira/browse/OLINGO-1115
> Project: Olingo
> Issue Type: Question
> Components: odata4-server
> Affects Versions: (Java) V4 4.3.0
> Environment: Eclipse Java
> Reporter: Barış Arslan
> Labels: documentation, features
> Fix For: (Java) V4 4.3.0
>
> Attachments: RimEdmProvider.java, RimEntityCollectionProcessor.java, RimServlet.java
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Hi,
> I am trying to use olingo java 4.3.0. However when I create a complex type in an entity, in process class to fill the related data, it causes an error.
> <error xmlns="http://docs.oasis-open.org/odata/ns/metadata">
> <code>null</code>
> <message>Cannot find type with name: com.ittr.rim.Bin</message>
> </error>
> The metadata is okay. I can see my types and properties in metadata. There is no problem with metadata. However for processing class there is a problem with complex types.
> I could not find the complex type example in original olingo odata v4.0 documentation in here.
> https://olingo.apache.org/doc/odata4/index.html
> I follow this answer to use complex type usage;
> http://stackoverflow.com/questions/28916364/how-to-create-a-complex-type-collection-in-olingo
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)