SAP / olingo-jpa-processor-v4

The JPA Processor fills the gap between Olingo V4 and the database, by providing a mapping between JPA metadata and OData metadata, generating queries and supporting the entity manipulations.
Apache License 2.0
127 stars 79 forks source link

Qualifier attribute of @EdmAnnotation can't be nullable #85

Closed mpbiz closed 5 years ago

mpbiz commented 5 years ago

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 5 years ago

@wog48 , updated topic with an examle

Java

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

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