Uploaded image for project: 'Spring Data REST'
  1. Spring Data REST
  2. DATAREST-408

Nested projections not loading nested lists

    XMLWordPrintable

    Details

    • Sprint:
      55 - Evans SR2

      Description

      When nesting projections, Lists/Maps are not included in the processing. Sample:

      The following snippet represents the nested projection, which contains a list of limitations.

      "name" : "Light",
          "description" : "Light",
          "enabled" : true,
          "limitations" : [ {
            "name" : "Request",
            "description" : "Number of requests per billing period",
            "type" : null,
            "value" : 20.0
          } ],
          "links" : [ ],
          "content" : [ ],
          "links" : [ {
            "rel" : "self",
            "href" : "http://localhost:8080/web/specifications/1310{?projection}"
          }, {
            "rel" : "limitations",
            "href" : "http://localhost:8080/web/specifications/1310/limitations"
          }, {
            "rel" : "product",
            "href" : "http://localhost:8080/web/specifications/1310/product"
          }
      

      Using the parent projection, which contains the nested projection

      "name" : "Light",
          "description" : "Light",
          "prices" : [ {
            "value" : -1.0,
            "currency" : "USD",
            "unit" : "Request",
            "period" : "Month",
            "interval" : 1,
            "approximation" : false,
            "component" : null
          } ],
          "productCategory" : {
            "name" : "Price comparison",
            "description" : "Blablablaba"
          },
          "specifications" : [ {
            "name" : "Light",
            "description" : "Light",
            "enabled" : true
          } ],
          "trialPeriod" : null,
          "trialInterval" : 0,
          "links" : [ ],
          "content" : [ ],
          "links" : [ {
            "rel" : "self",
            "href" : "http://localhost:8080/web/products/1300{?projection}"
          }, {
            "rel" : "specifications",
            "href" : "http://localhost:8080/web/products/1300/specifications"
          }, {
            "rel" : "product",
            "href" : "http://localhost:8080/web/products/1300/product"
          }, {
            "rel" : "productCategory",
            "href" : "http://localhost:8080/web/products/1300/productCategory"
          }, {
            "rel" : "accounts",
            "href" : "http://localhost:8080/web/products/1300/accounts"
          } ]
      

      one can see, that all types (int, string) etc. are rendered, but the list not.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              jhiemer Johannes Hiemer
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: