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

Samples seem to be outdated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.8.0
    • None
    • odata4-samples
    • None

    Description

      We've a REST-Service and we are currently evaluating whether we should add OData by using Olingo. The problem is that the examples (https://olingo.apache.org/doc/odata4/index.html) show how one needs to manually check for arguments, filter the objects, create the entities and much more. Is this really the way to go?

      final Entity e2 = new Entity()
        .addProperty(new Property(null, "ID", ValueType.PRIMITIVE, 2))
        .addProperty(new Property(null, "Name", ValueType.PRIMITIVE, "1UMTS PDA"))
        .addProperty(new Property(null, "Description", ValueType.PRIMITIVE, "Ultrafast 3G UMTS/HSDPA Pocket PC, supports GSM network"));
      

      Is this really necessary? Spring takes the objects that are used in the controllers and serializes and deserializes them into and from JSON using Jackson. Can Olingo do something like this?

      If yes: Create an example of how to do it. The current examples seem to be old.
      If no: Why not? This should be added.

      The JPA adapter for Olingo could somehow do it, but it only supports OData V2.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Shryne Eugen Deutsch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: