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

Michael Bolz commented on OLINGO-32:
------------------------------------

Hi together,

I admit Georgi with the practical aspect and I admit Chandan with the part of 
_not mixing JPA and EDM (to much)_.
My suggestion is to add all necessary (Java) annotations for 
creation/annotation of an EDM model into the common {{odata2-api-annotation}}   
 module. Currently there are only the additional extensions for the JPA 
annotations. If their are all necessary annotations for a EDM model the JPA 
processor _could_ use them to allow a better specification of the model for 
those parts where the JPA annotations are not suitable. As is currently for the 
{{Facets}} and {{FunctionImport}} annotations.
I already created a proposal therefore in the _PocEdmAnnotationsExtension_ 
branch which I wanted to push and discuss the last days. But I have to clean it 
up a little bit and hence it will take time till tomorrow before I really can 
push it.
But if pushed I hope we can discuss it and find a good solution so that we can 
merge it into the main branch (and hopefully into the next release).

Kind regards,
Michael


> Introduce (Java) Annotations for definition of EDM
> --------------------------------------------------
>
>                 Key: OLINGO-32
>                 URL: https://issues.apache.org/jira/browse/OLINGO-32
>             Project: Olingo
>          Issue Type: New Feature
>            Reporter: Michael Bolz
>            Assignee: Michael Bolz
>            Priority: Minor
>
> The idea is to create your model as POJOs which then can be annotated with 
> special {{@EdmXXX}} (Java) annotations to define the EDM for an OData Service.
> Based on these annotation then the {{edmx}} document ({{$metadata}}) can be 
> generated as well as a generic {{Processor}} ({{ODataSingleProcessor}}) for 
> e.g. {{JSON}} can be written.
> As initial contribution and starting point for discussions about this feature 
> a branch with name {{PocEdmAnnotationsExtension}} is created with a basic 
> Proof of Concept.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to