From dev-return-20563-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu May 31 13:44:23 2012 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E2889020 for ; Thu, 31 May 2012 13:44:23 +0000 (UTC) Received: (qmail 4215 invoked by uid 500); 31 May 2012 13:44:23 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 4189 invoked by uid 500); 31 May 2012 13:44:23 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 4181 invoked by uid 99); 31 May 2012 13:44:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 13:44:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id E3E9B140C2C for ; Thu, 31 May 2012 13:44:22 +0000 (UTC) Date: Thu, 31 May 2012 13:44:22 +0000 (UTC) From: "Heath Thomann (JIRA)" To: dev@openjpa.apache.org Message-ID: <1270688577.21829.1338471862935.JavaMail.jiratomcat@issues-vm> In-Reply-To: <333037790.34591.1334695277795.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (OPENJPA-2174) Result set mapping was not looked up when retrieving column data from a NamedNativeQuery MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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