You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by Claudio Mauri <cl...@limontainformatica.it> on 2016/11/30 08:47:34 UTC

Olingo V4 Java Annotation Processor ?

First of all, sorry if I'm writing to the wrong mailing list, but I presume that my question may be answered only by developers of the framework..

When I started  studying Olingo V4 (I've entirely skipped V2 version) I've got the feeling that the library itself is very powerful, but requires really a lot of boilerplate code to work with.

So, I started to adapt the Tutorial provided on Apache Olingo web site (for version 4)  to create an equivalent of the DemoEntityProcessor that would be able to work with annotated POJO and to call internally an implementation of a custom "service" to perform crud operations.... Only to realize after that is exactly  what Olingo V2 Java Annotation processor does !
Unluckily, I found no documentation about something similar for Olingo V4. So, is there something similar already available - or, at least, planned - for V4 too ?  Of course I would by far prefer to use an "official" implementation of an annotation processor instead of trying to write it myself (with few chances to succeed...)

Thanks for your time and sorry if I bothered you.

All the bests,

Claudio









Re: Olingo V4 Java Annotation Processor ?

Posted by Ramesh Reddy <ra...@redhat.com>.
Claudio,

It is NO annotation processor, "server-core-ext" framework takes care of much of the boilerplate code, and an example of that can be found here https://github.com/apache/olingo-odata4/blob/master/lib/server-core-ext/src/test/java/org/apache/olingo/server/example/TripPinServiceTest.java

Original thought was to add-on annotation processor but that never got materialized.

Ramesh..


----- Original Message -----
> Hi Claudio,
> 
> there is currently no Annotation Processor for V4. An approach that does not
> require this much boilerplate code is the Olingo OData Server Extension for
> Java. You can find the JARs on the download page:
> http://olingo.apache.org/doc/odata4/download.html
> Unfortunately I am not aware of documentation regarding this extension.
> 
> If you would like to contribute an Annotation approach please have a look at
> our contribution guide: http://olingo.apache.org/contribute.html
> 
> Thanks & Best Regards,
> Christian
> 
> -----Original Message-----
> From: Claudio Mauri [mailto:claudio.mauri@limontainformatica.it]
> Sent: Mittwoch, 30. November 2016 09:48
> To: dev@olingo.apache.org
> Subject: Olingo V4 Java Annotation Processor ?
> 
> First of all, sorry if I'm writing to the wrong mailing list, but I presume
> that my question may be answered only by developers of the framework..
> 
> When I started  studying Olingo V4 (I've entirely skipped V2 version) I've
> got the feeling that the library itself is very powerful, but requires
> really a lot of boilerplate code to work with.
> 
> So, I started to adapt the Tutorial provided on Apache Olingo web site (for
> version 4)  to create an equivalent of the DemoEntityProcessor that would be
> able to work with annotated POJO and to call internally an implementation of
> a custom "service" to perform crud operations.... Only to realize after that
> is exactly  what Olingo V2 Java Annotation processor does !
> Unluckily, I found no documentation about something similar for Olingo V4.
> So, is there something similar already available - or, at least, planned -
> for V4 too ?  Of course I would by far prefer to use an "official"
> implementation of an annotation processor instead of trying to write it
> myself (with few chances to succeed...)
> 
> Thanks for your time and sorry if I bothered you.
> 
> All the bests,
> 
> Claudio
> 
> 
> 
> 
> 
> 
> 
> 
> 

R: Olingo V4 Java Annotation Processor ?

Posted by Claudio Mauri <cl...@limontainformatica.it>.
Hi Christian,

thanks so much for your kind answer. As far as you know, isn't an Annotation Processo planned either ?  I will have a look at the OData Server Extension at the link you provided, but without any documentation I'm afraid it's going to be very
difficult, at least for me, to make head and tail of how it works... 
Thanks a lot again !





-----Messaggio originale-----
Da: Amend, Christian [mailto:christian.amend@sap.com] 
Inviato: mercoledì 30 novembre 2016 11:03
A: dev@olingo.apache.org
Cc: Claudio Mauri <cl...@limontainformatica.it>
Oggetto: RE: Olingo V4 Java Annotation Processor ?

Hi Claudio,

there is currently no Annotation Processor for V4. An approach that does not require this much boilerplate code is the Olingo OData Server Extension for Java. You can find the JARs on the download page: http://olingo.apache.org/doc/odata4/download.html
Unfortunately I am not aware of documentation regarding this extension.

If you would like to contribute an Annotation approach please have a look at our contribution guide: http://olingo.apache.org/contribute.html

Thanks & Best Regards,
Christian

-----Original Message-----
From: Claudio Mauri [mailto:claudio.mauri@limontainformatica.it] 
Sent: Mittwoch, 30. November 2016 09:48
To: dev@olingo.apache.org
Subject: Olingo V4 Java Annotation Processor ?

First of all, sorry if I'm writing to the wrong mailing list, but I presume that my question may be answered only by developers of the framework..

When I started  studying Olingo V4 (I've entirely skipped V2 version) I've got the feeling that the library itself is very powerful, but requires really a lot of boilerplate code to work with.

So, I started to adapt the Tutorial provided on Apache Olingo web site (for version 4)  to create an equivalent of the DemoEntityProcessor that would be able to work with annotated POJO and to call internally an implementation of a custom "service" to perform crud operations.... Only to realize after that is exactly  what Olingo V2 Java Annotation processor does !
Unluckily, I found no documentation about something similar for Olingo V4. So, is there something similar already available - or, at least, planned - for V4 too ?  Of course I would by far prefer to use an "official" implementation of an annotation processor instead of trying to write it myself (with few chances to succeed...)

Thanks for your time and sorry if I bothered you.

All the bests,

Claudio









RE: Olingo V4 Java Annotation Processor ?

Posted by "Amend, Christian" <ch...@sap.com>.
Hi Claudio,

there is currently no Annotation Processor for V4. An approach that does not require this much boilerplate code is the Olingo OData Server Extension for Java. You can find the JARs on the download page: http://olingo.apache.org/doc/odata4/download.html
Unfortunately I am not aware of documentation regarding this extension.

If you would like to contribute an Annotation approach please have a look at our contribution guide: http://olingo.apache.org/contribute.html

Thanks & Best Regards,
Christian

-----Original Message-----
From: Claudio Mauri [mailto:claudio.mauri@limontainformatica.it] 
Sent: Mittwoch, 30. November 2016 09:48
To: dev@olingo.apache.org
Subject: Olingo V4 Java Annotation Processor ?

First of all, sorry if I'm writing to the wrong mailing list, but I presume that my question may be answered only by developers of the framework..

When I started  studying Olingo V4 (I've entirely skipped V2 version) I've got the feeling that the library itself is very powerful, but requires really a lot of boilerplate code to work with.

So, I started to adapt the Tutorial provided on Apache Olingo web site (for version 4)  to create an equivalent of the DemoEntityProcessor that would be able to work with annotated POJO and to call internally an implementation of a custom "service" to perform crud operations.... Only to realize after that is exactly  what Olingo V2 Java Annotation processor does !
Unluckily, I found no documentation about something similar for Olingo V4. So, is there something similar already available - or, at least, planned - for V4 too ?  Of course I would by far prefer to use an "official" implementation of an annotation processor instead of trying to write it myself (with few chances to succeed...)

Thanks for your time and sorry if I bothered you.

All the bests,

Claudio