[
https://issues.apache.org/jira/browse/OLINGO-983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15391887#comment-15391887
]
Punith DG commented on OLINGO-983:
----------------------------------
I'm reading the OData metadata file.
I think the problem statement is unclear to you.
Basically I want to get the term of an entity or a property annotation.
I can call EdmEntitySet.getAnnotations() and EdmProperty.getAnnotations() and
get the list of EdmAnnotation.
But when I call EdmAnnotation.getTerm() it returns NULL. But I'm able to get
the expression of the annotation.
All I am interested is in getting the Term of the Annotation.
> 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)