[
https://issues.apache.org/jira/browse/OLINGO-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13833764#comment-13833764
]
Chandan V.A commented on OLINGO-32:
-----------------------------------
Hi Michael,
I have few comments with respect to the following Annotations.
1) EdmFunctionImportParameter - As per CSDL specification a Parameter can
define the Mode of parameter - IN, OUT, INOUT? This is already part of
FunctionImportParameter. Can you please check if this can be added to the
annotation.
2) EdmFunctionImport -
a) The enum "Type" needs another enumeration type namely "NONE" as per CSDL
specification.
b)
3) EdmFacets - the default value for maxlength is defined as -1. Should this
not be 1. Similarly for precision should it be not 1 and for scale 0.
4) I initially added Documentation annotation to align with CSDL specification.
May be we can introduce this annotation.
Regarding the parsing of annotations - Are you planning to provide a parser
that parses the annotated Java classes and transforms into EDM? If so I would
like to have the following feature where the parser can take Java class as
Input and extend an existing EDM schema. This is currently implemented in JPA
Processor library where the EDM schema built from JPA Models can be extended
with EDM annotated Java classes (mainly for supporting function imports)
Regards
Chandan
> 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)