简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM