Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-118

Typing of odata entry properties

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V2 1.1.0
    • V2 1.1.0
    • None
    • None

    Description

      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

      Attachments

        1. olingo output.xml
          1 kB
          M Carissimi
        2. odata4j output.xml
          1 kB
          M Carissimi

        Activity

          People

            mirbo mibo
            Michele EnergySys M Carissimi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: