Skip to Content

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

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











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

The output in the browser is as below.

And when I hit URL taking one EntitySet then the output is


1. In what other way can I configure the beans that are present in 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.

cloudconfig.png (58.7 kB)
model.png (53.2 kB)
output-1.png (12.0 kB)
output-2.png (10.3 kB)
controller.png (18.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.