You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does @EdmAnnotation(term = "Core.Description", constantExpression = @EdmAnnotation.ConstantExpression(type = CsdlConstantExpression.ConstantExpressionType.String, value = "Description Test")) result in the xml output of http://localhost:8080/Cases/V1.0/$metadata only in <Annotation> <String>Description Test</String> </Annotation> - without the string "Term=Core.Description" in the Annotation tag?
I would expect it to behave similar to the qualifier parameter @EdmAnnotation(term = "Core.Description", qualifier = "Qualifier", constantExpression = @EdmAnnotation.ConstantExpression(type = CsdlConstantExpression.ConstantExpressionType.String, value = "Description Test")) that gives <Annotation Qualifier="Qualifier">. At the moment "term" does not matter at all.
Background:
A GET http://localhost:8080/Cases/V1.0/$metadata of a project with Entity
It seems that an attribute of either Person.class or BusinessPartner.class has an annotation EdmAnnotation, which can be used to generate simple OData annotation, but corresponding definition of the OData annotations is missing.
...
[...] download Org.OData.Core.V1.xml, store it e.g. under /src/main/resources/annotations
You create an extension of JPAEdmMetadataPostProcessor and override method provideReferences using the following code:
Why does
@EdmAnnotation(term = "Core.Description", constantExpression = @EdmAnnotation.ConstantExpression(type = CsdlConstantExpression.ConstantExpressionType.String, value = "Description Test"))
result in the xml output ofhttp://localhost:8080/Cases/V1.0/$metadata
only in<Annotation> <String>Description Test</String> </Annotation>
- without the string "Term=Core.Description" in the Annotation tag?I would expect it to behave similar to the
qualifier
parameter@EdmAnnotation(term = "Core.Description", qualifier = "Qualifier", constantExpression = @EdmAnnotation.ConstantExpression(type = CsdlConstantExpression.ConstantExpressionType.String, value = "Description Test"))
that gives<Annotation Qualifier="Qualifier">
. At the moment "term" does not matter at all.Background:
A
GET http://localhost:8080/Cases/V1.0/$metadata
of a project with Entitygives
I seek for a solution with an output off
The text was updated successfully, but these errors were encountered: