You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Gaurav Garg (JIRA)" <ji...@apache.org> on 2014/03/13 07:57:00 UTC

[jira] [Commented] (OLINGO-178) How to apply filter on target entity

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

Gaurav Garg commented on OLINGO-178:
------------------------------------

Hi Stephan,

below is the error I'm getting when appying filter on target entity field

java.lang.ClassCastException: org.apache.olingo.odata2.core.edm.provider.EdmNavigationPropertyImplProv cannot be cast to org.apache.olingo.odata2.api.edm.E
        at org.apache.olingo.odata2.jpa.processor.core.ODataExpressionParser.parseToJPAWhereExpression(ODataExpressionParser.java:153)
        at org.apache.olingo.odata2.jpa.processor.core.ODataExpressionParser.parseToJPAWhereExpression(ODataExpressionParser.java:104)
        at org.apache.olingo.odata2.jpa.processor.core.ODataExpressionParser.parseToJPAWhereExpression(ODataExpressionParser.java:105)
        at org.apache.olingo.odata2.jpa.processor.core.ODataExpressionParser.parseToJPAWhereExpression(ODataExpressionParser.java:95)
        at org.apache.olingo.odata2.jpa.processor.core.jpql.JPQLSelectContext$JPQLSelectContextBuilder.generateWhereExpression(JPQLSelectContext.java:153)
        at org.apache.olingo.odata2.jpa.processor.core.jpql.JPQLSelectContext$JPQLSelectContextBuilder.build(JPQLSelectContext.java:104)
        at org.apache.olingo.odata2.jpa.processor.core.access.data.JPAProcessorImpl.process(JPAProcessorImpl.java:142)
        at org.apache.olingo.odata2.jpa.processor.core.ODataJPAProcessorDefault.readEntitySet(ODataJPAProcessorDefault.java:53)

Thanks,
Gaurav

> How to apply filter on target entity
> ------------------------------------
>
>                 Key: OLINGO-178
>                 URL: https://issues.apache.org/jira/browse/OLINGO-178
>             Project: Olingo
>          Issue Type: Wish
>            Reporter: Gaurav Garg
>            Assignee: Stephan Klevenz
>
> Hi There,
> My question is how we can apply filter query option on navigation property For example if I have an entity IdXref which has navigation property Issue
> then how can I apply filter on property of Issue navigation property
> any help is appricited
> Thanks



--
This message was sent by Atlassian JIRA
(v6.2#6252)