I'm building a java service that accesses OData information. I'm using olingo to parse all my returned json. If I pull the metadata I can see that my properties have custom attributes under all of my EntityTypes. I'm trying to access these attributes. I can currently access all the properties but all I can seem to get is the key, value pairs.
for(Entry<String, Object> prop : entry.getProperties().entrySet())
Steeping through in Eclipse I can see that the EntityType object has parsed these attributes and is storing them in a hashmap. Any idea how to get at this using Olingo? Last resort would be to side process the metadata xml again but I really really don't want to do that.
I've also seen in debugger that the call
entitySet.getEntityType().getProperty("createdBy")
contains a SimpleProperty property
variable that contains all my attribute annotations. Again can't figure out how to get access (both hacking and googleing). sigh :\