[
https://issues.apache.org/jira/browse/OLINGO-983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15389337#comment-15389337
]
Ramesh Reddy commented on OLINGO-983:
-------------------------------------
Try reading the annotation on the annotation to read sub-annotations like
Permissions, Description, Immutatable. Annotations are dynamic in nature, it is
not possible to provide a defined API access for each annotation. The
application can introspect what annotations it can understand and apply to
their data. There will be enforcement of annotations from Olingo library
perspective.
> 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
>
> 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)