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 7A6E19555 for ; Sat, 31 Mar 2012 08:56:56 +0000 (UTC) Received: (qmail 85612 invoked by uid 500); 31 Mar 2012 08:56:56 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 85376 invoked by uid 500); 31 Mar 2012 08:56:53 -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 85327 invoked by uid 99); 31 Mar 2012 08:56:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2012 08:56:51 +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; Sat, 31 Mar 2012 08:56:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 02FB0350D80 for ; Sat, 31 Mar 2012 08:56:29 +0000 (UTC) Date: Sat, 31 Mar 2012 08:56:29 +0000 (UTC) From: =?utf-8?Q?santiago_garc=C3=ADa_pimentel_=28Commented=29_=28JIRA=29?= To: dev@openjpa.apache.org Message-ID: <1234309408.580.1333184190080.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= 243089#comment-13243089 ]=20 santiago garc=C3=ADa pimentel commented on OPENJPA-2166: --------------------------------------------------- thanks. It is already working. I only was giving extra information since yo= u said that it was not the proper way for openjpa to behave. =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