You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Björn Wagner (JIRA)" <ji...@apache.org> on 2014/11/22 18:33:33 UTC

[jira] [Created] (OLINGO-495) JPARelationship inheritance is not supported

Björn Wagner created OLINGO-495:
-----------------------------------

             Summary: JPARelationship inheritance is not supported
                 Key: OLINGO-495
                 URL: https://issues.apache.org/jira/browse/OLINGO-495
             Project: Olingo
          Issue Type: Bug
          Components: odata2-jpa
    Affects Versions: V2 2.0.0
            Reporter: Björn Wagner


When a relationship of a JPA entity is inherited from the super class of that entity, Olingo can't resolve it. The reason is located in JPAEntityParser::parse2EdmNavigationValueMap:176. Should that call go to getMethod(...) instead of getDeclaredMethod(…)?

The workaround is to override the getter in the subclass to call the getter in the super class. 
Any chance this can get fixed?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Created] (OLINGO-495) JPARelationship inheritance is not supported

Posted by Giacomo Pati <gi...@pati.ch>.
Hi Björn

This issue has already been reported by me as OLINGO-481
<https://issues.apache.org/jira/browse/OLINGO-481>. So far nobody has
reviewed it yet.

Ciao

2014-11-22 18:33 GMT+01:00 Björn Wagner (JIRA) <ji...@apache.org>:

> Björn Wagner created OLINGO-495:
> -----------------------------------
>
>              Summary: JPARelationship inheritance is not supported
>                  Key: OLINGO-495
>                  URL: https://issues.apache.org/jira/browse/OLINGO-495
>              Project: Olingo
>           Issue Type: Bug
>           Components: odata2-jpa
>     Affects Versions: V2 2.0.0
>             Reporter: Björn Wagner
>
>
> When a relationship of a JPA entity is inherited from the super class of
> that entity, Olingo can't resolve it. The reason is located in
> JPAEntityParser::parse2EdmNavigationValueMap:176. Should that call go to
> getMethod(...) instead of getDeclaredMethod(…)?
>
> The workaround is to override the getter in the subclass to call the
> getter in the super class.
> Any chance this can get fixed?
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>



-- 
Giacomo