2018 Oct 23 9:23 AM
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.