From dev-return-20343-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Fri Mar 30 14:52:48 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 A23899A0C for ; Fri, 30 Mar 2012 14:52:48 +0000 (UTC) Received: (qmail 49068 invoked by uid 500); 30 Mar 2012 14:52:48 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 49028 invoked by uid 500); 30 Mar 2012 14:52:48 -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 49020 invoked by uid 99); 30 Mar 2012 14:52:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 14:52:48 +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; Fri, 30 Mar 2012 14:52:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 17A0534F875 for ; Fri, 30 Mar 2012 14:52:27 +0000 (UTC) Date: Fri, 30 Mar 2012 14:52:27 +0000 (UTC) From: "Jody Grassel (Commented) (JIRA)" To: dev@openjpa.apache.org Message-ID: <795572703.38140.1333119147108.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <218463733.34602.1333052302133.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OPENJPA-2166) the column for @id is named id no matter the field name or @column MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-2166?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13= 242400#comment-13242400 ]=20 Jody Grassel commented on OPENJPA-2166: --------------------------------------- That has absolutely nothing to do with anything. Your getName() method has= the "final" key word, which is forbidden -- I even cited the relevant sect= ion of the spec. Remove the "final" keyword and you should be fine. =20 > the column for @id is named id no matter the field name or @column > ------------------------------------------------------------------ > > Key: OPENJPA-2166 > URL: https://issues.apache.org/jira/browse/OPENJPA-2166 > Project: OpenJPA > Issue Type: Bug > Components: sql > Affects Versions: 2.2.0 > Environment: ubuntu 64bits, java 1.7.0_01 > Reporter: santiago garc=C3=ADa pimentel > Priority: Minor > Labels: mapping > > I have an entity with an Id: > @Entity > @Table(name =3D "Domain") > public class Domain implements java.io.Serializable, Comparable { > ... > @Id > =09@Column(name =3D "name", unique =3D true, nullable =3D false) > =09public final String getName() { > =09=09return this.name; > =09} > ... > still openjpa seems to be querying for a column id instead of name -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira