You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Jonas Vachal <jo...@vertex-controls.com> on 2015/06/16 18:31:09 UTC

Strongly Typing ClientEntity

Is it possible to create an empty ClientEntity at runtime based off the EDM?

I am working with the Olingo4 client library and basing my work using the following example:
https://templth.wordpress.com/2014/12/05/manipulating-data-of-odata-v4-services-with-olingo/

It appears that ODataEntity is now ClientEntity (based on the return type of getEntityCreateRequest).  The example provides sample code on how to add properties to the entity but I was hoping to instantiate the ClientEntity with those properties already existing so that I can assign my local values right into them or cast my pojo to that ClientEntity.

Essentially I am after a strongly typed ClientEntity based off a local class.

Is this possible?

Thanks!

J.