[
https://issues.apache.org/jira/browse/OLINGO-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873356#comment-13873356
]
Michael Bolz commented on OLINGO-118:
-------------------------------------
Hi Miki,
??thanks again for your input.??
No Problem ;o)
??It is interesting that the OData Specification does not mandate the use of
m:type in simple properties.??
Just to be sure I took a look into and
[there|http://www.odata.org/documentation/atom-format/#61111_Entity_Property_as_a_datapropertyName_Element]
it is defined (for version 2) as:
{noformat}
6.1.11.1. Entity Property as a data:[propertyName] Element
…
The data:[PropertyName] element MAY include a metadata:type attribute to
specify the type of the simple- or complex-typed instance.
…
{noformat}
??Should this be raised as a defect/enhancement???
I suggest to open a new JIRA issue from the type _enhancement_.
Because IMHO it is not a bug but a feature.
??How soon can this type of functionality be added to Olingo???
Good question, but I have to take a deeper look into the implementation before
I really can answer this.
Kind regards,
Michael
> Typing of odata entry properties
> --------------------------------
>
> Key: OLINGO-118
> URL: https://issues.apache.org/jira/browse/OLINGO-118
> Project: Olingo
> Issue Type: Question
> Affects Versions: V2 1.1.0
> Reporter: M Carissimi
> Assignee: Michael Bolz
> Attachments: odata4j output.xml, olingo output.xml
>
>
> Hello,
> I am migrating an odata service from odata4j to olingo. During creation of
> single odata entries or odata feeds, odata4j allows you to specify the type
> of each property element. How can this be achieved in olingo? See attached
> xml feeds for an entry generated in odata4j and one generated in olingo.
> We generate the metadata at runtime using custom database queries and in
> odata4j we can cache the metadata document to avoid having to rebuild it
> every time a request is received. How can metadata be cached between requests
> in olingo? Following the simple read example on the olingo website, we use an
> ODataServiceFactory to create a service using method
> createODataSingleProcessorService(), but these methods are invoked during
> each request.
> Cheers
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)