OpenJPA
  1. OpenJPA
  2. OPENJPA-2174

Result set mapping was not looked up when retrieving column data from a NamedNativeQuery

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.2.0
    • Fix Version/s: 2.1.2, 2.2.1, 2.3.0
    • Component/s: jdbc
    • Labels:
      None
    • Environment:
      OpenJPA 2.1.2
    • Patch Info:
      Patch Available

      Description

      Invalid index exception was thrown when it tried to retrieve the column data from the result set of a name native query.

      This is because the attribute name defined in the entity is different from the actual column alas name defined in the query and it didn't look up the result set mapping for the correct column name before retrieving the data.

      the fix and test case is attached.

      1. OPENJPA-2174-2.1.x.patch.txt
        8 kB
        Helen Xu
      2. OPENJPA_2124.patch.txt
        1 kB
        Helen Xu

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Helen Xu
            Reporter:
            Helen Xu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development