Hi Chandan and All interested,

Yes, it is possible to create just the EDM based on annotated POJOs.
But it is currently not supported by the ³AnnotationServiceFactory² in the
API.

To create an EDM based on annotations (from our library) you need the
³AnnotationEdmProvider² from the ³annotation-processor-core² (in package
"org.apache.olingo.odata2.annotation.processor.core.edm²).
The ³AnnotationEdmProvider² have just to be instanciated with the
annotated classes or a package to be scanned for annotated classes.
As example you can take a look into
"org.apache.olingo.odata2.annotation.processor.core.AnnotationServiceFactor
yImpl² or the ³AnnotationEdmProviderTest² (all in the
³annotation-processor-core² project).

If there are more open questions to this topic, please mail ;o)

Kind regards,
Michael




On 03/02/14 15:01, "V.A, Chandan" <[email protected]> wrote:

>Hello All,
>We would like to use the annotation library to create an OData service.
>We would need the annotation library to just provide us the EDM from an
>annotated POJO. But would like to register our own processor for
>processing the runtime data instead of using the inbuilt
>AnnotationInMemory processor.
>
>Is this possible? If so can you please explain or point to any reference.
>
>Thanks,
>Kind Regards
>Chandan VA
>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to