[
https://issues.apache.org/jira/browse/OLINGO-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836294#comment-13836294
]
Michael Bolz commented on OLINGO-32:
------------------------------------
Hi Chandan,
as reply to [your fist
comment|https://issues.apache.org/jira/browse/OLINGO-32?focusedCommentId=13835957&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13835957].
# Then we should do it like you suggested, we add this CSDL addition to our
annotation API first if an use case arises.
# My suggestion is like above, no {{ReturnType.NONE}} as long we do not have an
use case. Because the OData specification does not allow _Function Imports_
without a return type and currently the JPA processor ignores the
{{ReturnType.NONE}} and the EDM annotation does not need a {{ReturnType.NONE}}.
# Then we use as default values {{-1}} for the {{@EdmFacets}}.
# Ok. For a uniform naming I will add an {{EdmDocumentation}} annotation and
the current existing {{Documentation}} will be set to deprecated.
I do the changes ASAP and push them into the feature branch.
In addition I will check/try a merge into the current master so that we get the
{{PocEdmAnnotationsExtension}} 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
> Affects Versions: V2 1.1.0
> Reporter: Michael Bolz
> Assignee: Michael Bolz
> Priority: Minor
> Fix For: V2 1.1.0
>
>
> 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)