javastringodatamaxlengtholingo

Odata V2 Java set EDM String MaxLength


We are using Apache org.apache.olingo odata jar in order to expose as odata Service in Java.

Facing one issue in EDM String MaxLength property. Not able to expose a string which is more than 255 characters in length.

We need to know where we can configure to extend the length of this "EDM.String" data type.


Solution

  • Try to use Facets class which has the method setMaxLength(Integer maxLength).

    Facets examples