olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OLINGO-1094) Key predicate for Edm.String type
Date Mon, 13 Mar 2017 12:20:41 GMT

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

Jay Xu commented on OLINGO-1094:

It is my pleasure to contribute the code. :)
My original thinking is that - in the function server.core.uri.parser.ParserHelper.simpleKey(),
it calls `tokenizer.getText()` to get literalValue. I tried to add a new function `getUnquotedTest`
in the file server.core.uri.parser.UriTokenizer to get the text without single quotes, but
I do not know how to add the logic in simpleKey() to check if the type is "Edm.String" or

It is the first time for me to contribute the code in Olingo library, and I am not sure this
is a right approach to resolve this issue? It is appreciated if you can show me a light on

> Key predicate for Edm.String type
> ---------------------------------
>                 Key: OLINGO-1094
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1094
>             Project: Olingo
>          Issue Type: Bug
>            Reporter: Jay Xu
>            Assignee: Christian Amend
> I defined a entitytype `Product` and have a property `Id` which type is defined as Edm.String.
When I set this property as a CsdlPropertyRef, and have the entity in which the value of the
property 'Id' is the String `Simple`. According to the function 'nextStringValue' of olingo.server.core.uri.parser.UriTkoenizer,
seems that it only allows the URI `/<root_url>/Product)('Simple')`. Is it possible to
just simplify the URI as `/<root_url>/Product)(Simple)`, that is, removing the single
quotation around Simple? Because when query the value of the property `Id`, it shows me only
the word Simple.

This message was sent by Atlassian JIRA

View raw message