SAP/olingo-jpa-processor-v4

Qualifier attribute of @EdmAnnotation can't be nullable

mpbiz opened this issue · 2 comments

mpbiz commented

There is no way to remove the qualifier attribute from @EdmAnnotation, since the field has a default value = "".
Finally $metadata document has empty Qualifier attribute

Java

@EdmAnnotation(term = "Core.Description", constantExpression = @EdmAnnotation.ConstantExpression(type = CsdlConstantExpression.ConstantExpressionType.String,
            value = "Some text"))

XML

<Annotation Term = "Core.Description" Qualifier = "">
    <String>
       some text
    </String>
</Annotation>
mpbiz commented

@wog48 , updated topic with an examle

Java

@EdmAnnotation(term = "Core.Description", constantExpression = @EdmAnnotation.ConstantExpression(type = CsdlConstantExpression.ConstantExpressionType.String,
            value = "some text"))
wog48 commented

Please check release 0.3.5. The problem should be solved there.