Ich habe Odata V4 Service mit Olingo implementiert. Ich versuche,
Aggregation.ApplySupported Anmerkung zu meinem Service einzuschließen. Der Wert des Anmerkungsterms ist in meinem $ metadatendokument jedoch leer. Unten ist mein Code-Schnipsel
List<CsdlAnnotation> list = new ArrayList<CsdlAnnotation>();
CsdlAnnotation annotationAttribute = new CsdlAnnotation();
annotationAttribute.setTerm("Aggregation.ApplySupported");
annotationAttribute.setExpression(new CsdlConstantExpression(CsdlConstantExpression.ConstantExpressionType.String, "true"));
list.add(annotationAttribute);
entityContainer.setAnnotations(list);
$ Metadaten
<EntityContainer Name="myContainer">
<!-- .....sets -->
<Annotation> <!-- term is blank -->
<String>true</String>
</Annotation>
</EntityContainer>
Kann nicht herausfinden, was ich bin fehlt. Vielen Dank im Voraus.