Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2174

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.2.0
    • 2.1.2, 2.2.1, 2.3.0
    • jdbc
    • None
    • OpenJPA 2.1.2
    • 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.

      Attachments

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

        Activity

          People

            helenxu Helen Xu
            helenxu Helen Xu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: