Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-927

Projection Column Mapping Issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.12.4 (Hopper SR4)
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      There seems to be a bug within the projection implementation. I have a native query which result i want to map with projection to a interface. The interface has three getters which have the exact name as the returned columns by the native query. The result is now that the columns are mapped into the wrong properties in the interface (or its proxy).

      I found that the problem may be in ResultProcessor Line 262 when the names get mapped to the columns. The names are in a wrong order. This wrong order is already present when the PropertyDescriptor instances are retrieved from the interface in DefaultProjectionInformation Line 48.

      Hope this helps

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              mgmeiner Michael Gmeiner
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: