Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Springboot + Spring data JPA(Hibernate) + SAP Hana + Olingo(odata V2)

Former Member
0 Kudos

What I am trying is to integrate Olingo Framework to the Springboot+Spring-data-JPA+SAP-Hana project.

I tried to create sample project based on below link.

How to create Olingo V2.0 OData service

Below is my project structure

-----------------------------------------------------

CloudConfig.java

-------------------------------------------------------

-------------------------

JPAServiceFactory.java

---------------------------

--------------------------------------------

DeviceMaster.java

--------------------------------------------

----------------------------------------

SpringContextUtil.java

-----------------------------------------

-------------------------------------

AppController.java

-------------------------------------

I have changed the table name/schema name in the code above before taking the Screen shot. After build I pushed this SAP Cloud environment through Cloud Foundry. Database connectivity is fine. when I hit the URL

https://olingojava......hana.ondemand.com/odata.svc/

The output in the browser is as below.

And when I hit URL taking one EntitySet

https://olingojava.hana.ondemand.com/odata.svc/DeviceMasters then the output is

Questions

1. In what other way can I configure the beans that are present in CloudConfig.java file in latest spring version?

2. How to get the data from the hana tables, instead of metadata that I am getting now(as above)?

3. How to integrate RestController,Service and Repository classes to this. As of now only AppController is configured. Not able to configure @RestController, @Service, and @Repository classes along with this project.

Please let me know in order to have Olingo-odata support to this project, what else is required?

Thanks in advance.

Saji S.

0 REPLIES 0