openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helen Xu (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2174) Result set mapping was not looked up when retrieving column data from a NamedNativeQuery
Date Tue, 17 Apr 2012 20:41:17 GMT
Result set mapping was not looked up when retrieving column data from a NamedNativeQuery
----------------------------------------------------------------------------------------

                 Key: OPENJPA-2174
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2174
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 2.2.0, 2.1.0
         Environment: OpenJPA 2.1.2
            Reporter: Helen Xu
            Assignee: Helen Xu


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.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message