[
https://issues.apache.org/jira/browse/OLINGO-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13914109#comment-13914109
]
Chandan V.A commented on OLINGO-180:
------------------------------------
Hello Thiago,
Currently it is not possible for OData2-JPA processor to read EDM annotations.
There are two reasons for the same
A) To keep JPA models separate from EDM.
B) To keep the metadata generation process simple. If we merge JPA annotation
and EDM annotation on one POJO then we might end up parsing annotations from
two different specifications (EDM and JPA) each time to just derive names.
Please also see the discussion here -
https://issues.apache.org/jira/browse/OLINGO-32?focusedCommentId=13807853&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13807853
In case if you feel there is a strong need to have mix of EDM and JPA then we
can see if a limited set of EDM annotations (just for name redefinition) be
supported by OData2 - JPA processor.
[~klevenzs], [~mirbo], [~carljmosca]
Your comments here please.
Thanks
Kind Regards
Chandan
> Use OData Annotations to complemente JPA entity in EDM generation
> -----------------------------------------------------------------
>
> Key: OLINGO-180
> URL: https://issues.apache.org/jira/browse/OLINGO-180
> Project: Olingo
> Issue Type: Question
> Components: odata2-jpa
> Reporter: Thiago Assis
>
> Is possible to use edm annotations to complemente jpa entity at edm
> generations instead of use JPAEDMMappingModel.xml ?
> I want to change the Namespace, EntityContainer Name and the EntitySet Name.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)