[ https://issues.apache.org/jira/browse/OPENJPA-2174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Heath Thomann resolved OPENJPA-2174. ------------------------------------ Resolution: Fixed Fix Version/s: 2.2.1 2.3.0 2.1.2 > 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.1.0, 2.2.0 > Environment: OpenJPA 2.1.2 > Reporter: Helen Xu > Assignee: Helen Xu > Fix For: 2.1.2, 2.3.0, 2.2.1 > > Attachments: OPENJPA-2174-2.1.x.patch.txt, OPENJPA_2124.patch.txt > > > 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