You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Guenther Schmidt <sc...@gmail.com> on 2019/10/10 19:56:34 UTC
newbie question
Hello,
I'm looking for an generic OData service that would allow me to connect
to, for example, a Postgres Database via OData.
I still haven't figured out if the Olingo project allows me to do just
that, or does it only allow me to use the library to offer OData access
to a specific database to which I have hard-coded the database model.
At this moment I assume it is the latter, but I might be
misunderstanding something here.
Thanks upfront,
Guenther
Re: newbie question
Posted by Guenther Schmidt <sc...@gmail.com>.
Hello Ramesh,
that is good to know, thank you very much!
I'll explore this further over the weekend, and it may be just what I'm
looking for!
Regards,
Guenther
On 10/10/19 3:38 PM, Ramesh Reddy wrote:
> You can also use Teiid for this (teiid.io <http://teiid.io>) which
> uses Olingo V4 library underneath it, you do not need to write any
> code. Here is an example [1]. The example shows H2 but can be easily
> replaced with Postgres.
>
> Ramesh..
>
> [1] https://github.com/teiid/teiid-spring-boot/tree/master/samples/odata
>
> On Thu, Oct 10, 2019 at 3:20 PM mibo <mibo@apache.org
> <ma...@apache.org>> wrote:
>
> Hello Guenther,
>
> For Olingo v2 (for OData V2) there exists a "jpa-extension“ which
> provides database connectivity via Java JPA (annotations).
> With this you can connect to any database which is supported via
> JPA (which includes Postgres).
> See here for details:
> http://olingo.apache.org/doc/odata2/tutorials/CreateWebApp.html
> (fingers crossed that documentation is still up to date ;o)
>
> For Olingo V4 (OData V4) there exists something similar:
> https://github.com/SAP/olingo-jpa-processor-v4
>
> Kind Regards, Michael
>
> > Am 10.10.2019 um 21:56 schrieb Guenther Schmidt
> <schmig68@gmail.com <ma...@gmail.com>>:
> >
> > Hello,
> >
> >
> > I'm looking for an generic OData service that would allow me to
> connect to, for example, a Postgres Database via OData.
> >
> >
> > I still haven't figured out if the Olingo project allows me to
> do just that, or does it only allow me to use the library to offer
> OData access to a specific database to which I have hard-coded the
> database model.
> >
> >
> > At this moment I assume it is the latter, but I might be
> misunderstanding something here.
> >
> >
> > Thanks upfront,
> >
> >
> > Guenther
> >
>
Re: newbie question
Posted by Ramesh Reddy <ra...@redhat.com>.
You can also use Teiid for this (teiid.io) which uses Olingo V4 library
underneath it, you do not need to write any code. Here is an example [1].
The example shows H2 but can be easily replaced with Postgres.
Ramesh..
[1] https://github.com/teiid/teiid-spring-boot/tree/master/samples/odata
On Thu, Oct 10, 2019 at 3:20 PM mibo <mi...@apache.org> wrote:
> Hello Guenther,
>
> For Olingo v2 (for OData V2) there exists a "jpa-extension“ which provides
> database connectivity via Java JPA (annotations).
> With this you can connect to any database which is supported via JPA
> (which includes Postgres).
> See here for details:
> http://olingo.apache.org/doc/odata2/tutorials/CreateWebApp.html (fingers
> crossed that documentation is still up to date ;o)
>
> For Olingo V4 (OData V4) there exists something similar:
> https://github.com/SAP/olingo-jpa-processor-v4
>
> Kind Regards, Michael
>
> > Am 10.10.2019 um 21:56 schrieb Guenther Schmidt <sc...@gmail.com>:
> >
> > Hello,
> >
> >
> > I'm looking for an generic OData service that would allow me to connect
> to, for example, a Postgres Database via OData.
> >
> >
> > I still haven't figured out if the Olingo project allows me to do just
> that, or does it only allow me to use the library to offer OData access to
> a specific database to which I have hard-coded the database model.
> >
> >
> > At this moment I assume it is the latter, but I might be
> misunderstanding something here.
> >
> >
> > Thanks upfront,
> >
> >
> > Guenther
> >
>
>
Re: newbie question
Posted by mibo <mi...@apache.org>.
Hello Guenther,
For Olingo v2 (for OData V2) there exists a "jpa-extension“ which provides database connectivity via Java JPA (annotations).
With this you can connect to any database which is supported via JPA (which includes Postgres).
See here for details: http://olingo.apache.org/doc/odata2/tutorials/CreateWebApp.html (fingers crossed that documentation is still up to date ;o)
For Olingo V4 (OData V4) there exists something similar: https://github.com/SAP/olingo-jpa-processor-v4
Kind Regards, Michael
> Am 10.10.2019 um 21:56 schrieb Guenther Schmidt <sc...@gmail.com>:
>
> Hello,
>
>
> I'm looking for an generic OData service that would allow me to connect to, for example, a Postgres Database via OData.
>
>
> I still haven't figured out if the Olingo project allows me to do just that, or does it only allow me to use the library to offer OData access to a specific database to which I have hard-coded the database model.
>
>
> At this moment I assume it is the latter, but I might be misunderstanding something here.
>
>
> Thanks upfront,
>
>
> Guenther
>