You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2014/01/15 09:32:21 UTC
[jira] [Commented] (OLINGO-118) Typing of odata entry properties
[ https://issues.apache.org/jira/browse/OLINGO-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13871805#comment-13871805 ]
Michael Bolz commented on OLINGO-118:
-------------------------------------
Hi,
to your first question: The type of an property should be defined when the EDM is created. And their via the {{setType()}} method at the {{SimpleProperty}}.
To your second question: Do you want to cache the complete XML or do you want to prevent only the database queries?
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
> 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)