[
https://issues.apache.org/jira/browse/OLINGO-983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15393652#comment-15393652
]
Ramesh Reddy commented on OLINGO-983:
-------------------------------------
Terms and Annotations are different. Term you can think of definition of a
"extended property", where as Annotation is "instance" of that property. Now,
in the $metadata document you reference above Annotations are there, but there
are no definitions of Term, thus you are seeing the nulls. One could argue that
these are "core" vocabularies they need to be always available with whatever
$metadata document, which I agree as they are put forward by the OData
Specification. However, right now, Olingo client side library does not
automatically add these vocabularies into the Edm object does not have any of
these "core" terms. If you were to inline these terms into the main document,
like in your $metadata, or add in References to these documents, and then I
believe you will see the Terms.
You can add a JIRA to request to add them implicitly on client side. BTW, the
server side MetadataParser does add these implicitly by default.
> Not able to access property annotations
> ---------------------------------------
>
> Key: OLINGO-983
> URL: https://issues.apache.org/jira/browse/OLINGO-983
> Project: Olingo
> Issue Type: Improvement
> Components: odata4-commons
> Affects Versions: (Java) V4 4.2.0
> Reporter: Punith DG
> Labels: newbie
> Attachments: EdmAnnotationImpl.java
>
>
> Not able to consume CsdlAnnotation data from
> "org.apache.olingo.commons.core.edm.EdmAnnotationImpl" class.
> There is no API that returns CsdlAnnotation data which contains annotations
> details like Permissions, Description, Immutatable, etc.
> This is much required to read the annotation information which describes much
> about the field behavior like creatable or just readable field or immutable.
> Could we have a method like getAnnotation() which returns the
> "CsdlAnnotation" data.
> Please point me if there is any other way to do so :) That will be more
> helpful.
> Thanks & Regards,
> Punith DG
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)