[jira] [Resolved] (OLINGO-1094) Key predicate for Edm.String type

2017-03-13 Thread Christian Amend (JIRA)

 [ 
https://issues.apache.org/jira/browse/OLINGO-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Amend resolved OLINGO-1094.
-
Resolution: Information Provided

Currently all types are returned in the URI format. I would prefer a method to 
get it as a data object instead. 

As a workaround you can use the valueOfString method at the PrimitiveType 
instance to get the unquoted value. Just pass type URI to the method to make 
sure that the method knows it is parsing a URI type of value.

If you want to contribute a patch that returns the proper values for all EDM 
Types I can apply it to the master branch. Just stick to the guideline and 
include a test case please :)

> 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 
> `//Product)('Simple')`. Is it possible to just simplify the URI as 
> `//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
(v6.3.15#6346)


[jira] [Resolved] (OLINGO-1094) Key predicate for Edm.String type

2017-03-13 Thread Christian Amend (JIRA)

 [ 
https://issues.apache.org/jira/browse/OLINGO-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Amend resolved OLINGO-1094.
-
Resolution: Not A Problem
  Assignee: Christian Amend

Hi Jay,

the URI specification says that key predicates of the type string must be in 
single quotation marks. So there is no way to get around this.

Best Regards,
Christian

> 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 
> `//Product)('Simple')`. Is it possible to just simplify the URI as 
> `//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
(v6.3.15#6346)