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 6FED39BF0 for ; Thu, 26 Apr 2012 18:18:45 +0000 (UTC) Received: (qmail 37460 invoked by uid 500); 26 Apr 2012 18:18:45 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 37424 invoked by uid 500); 26 Apr 2012 18:18:45 -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 37416 invoked by uid 99); 26 Apr 2012 18:18:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 18:18:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 18:18:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EB830412991 for ; Thu, 26 Apr 2012 18:18:23 +0000 (UTC) Date: Thu, 26 Apr 2012 18:18:23 +0000 (UTC) From: "Helen Xu (JIRA)" To: dev@openjpa.apache.org Message-ID: <994746575.6221.1335464303987.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <333037790.34591.1334695277795.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (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 X-Virus-Checked: Checked by ClamAV on 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