Search code examples
javarestodataolingo

Olingo Odata - How to create CsdlProperty of type Collection<String>?


Like in title. I have in code something like that:

CsdlProperty property = new CsdlProperty().setName("test").setType()

Whats the type for Collection<String> ? Is this a complex type if yes can someone provide any example ? Cannot find anything about that in documentation...


Solution

  • Try this:
    CsdlProperty property = new CsdlProperty() .setName("test") .setType(EdmPrimitiveTypeKind.String.getFullQualifiedName()) .setCollection(true);