Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
(Java) V4 4.8.0
-
None
-
None
Description
We've a REST-Service and we are currently evaluating whether we should add OData by using Olingo. The problem is that the examples (https://olingo.apache.org/doc/odata4/index.html) show how one needs to manually check for arguments, filter the objects, create the entities and much more. Is this really the way to go?
final Entity e2 = new Entity() .addProperty(new Property(null, "ID", ValueType.PRIMITIVE, 2)) .addProperty(new Property(null, "Name", ValueType.PRIMITIVE, "1UMTS PDA")) .addProperty(new Property(null, "Description", ValueType.PRIMITIVE, "Ultrafast 3G UMTS/HSDPA Pocket PC, supports GSM network"));
Is this really necessary? Spring takes the objects that are used in the controllers and serializes and deserializes them into and from JSON using Jackson. Can Olingo do something like this?
If yes: Create an example of how to do it. The current examples seem to be old.
If no: Why not? This should be added.
The JPA adapter for Olingo could somehow do it, but it only supports OData V2.