Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deserialization of OData objects to Java objects with Apache Olingo

We need to integrate a OData service within a Java application. Due to lack of documentation for SDL/Odata we decided to use Apache Olingo.

Our use case is to only query/ read objects from a given service (we will never write).

My question is: How to deserialize the received data to real objects? Is there a way (Odata 4) to use annotated classes (like Jpa or Json/Jackson) to deserialize directly into a class?

The examples i found are using no specific classes and use String literals to declare field names. Is this the only way? Is there an example that at least has specific data classes per entity delivered by odata?

like image 627
dermoritz Avatar asked Feb 19 '26 10:02

dermoritz


1 Answers

I think what you are looking for is a JPAProcessor for Olingo 4. There is one available here olingo-jpa-processor-v4

Unfortunately it also is lacking documentation and is pre-release

like image 151
Shiva Avatar answered Feb 21 '26 23:02

Shiva



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!