You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Helen Xu (Created) (JIRA)" <ji...@apache.org> on 2012/04/17 22:41:17 UTC
[jira] [Created] (OPENJPA-2174) Result set mapping was not looked
up when retrieving column data from a NamedNativeQuery
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
[jira] [Resolved] (OPENJPA-2174) Result set mapping was not looked
up when retrieving column data from a NamedNativeQuery
Posted by "Heath Thomann (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (OPENJPA-2174) Result set mapping was not looked
up when retrieving column data from a NamedNativeQuery
Posted by "Helen Xu (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Helen Xu updated OPENJPA-2174:
------------------------------
Attachment: OPENJPA_2124.patch.txt
> 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
> Attachments: 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
[jira] [Closed] (OPENJPA-2174) Result set mapping was not looked up
when retrieving column data from a NamedNativeQuery
Posted by "Heath Thomann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Heath Thomann closed OPENJPA-2174.
----------------------------------
> 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
[jira] [Updated] (OPENJPA-2174) Result set mapping was not looked
up when retrieving column data from a NamedNativeQuery
Posted by "Helen Xu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Helen Xu updated OPENJPA-2174:
------------------------------
Attachment: OPENJPA-2174-2.1.x.patch.txt
> 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
> 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