Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 82733 invoked from network); 7 Aug 2007 18:42:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2007 18:42:42 -0000 Received: (qmail 12179 invoked by uid 500); 7 Aug 2007 18:42:40 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 12008 invoked by uid 500); 7 Aug 2007 18:42:40 -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 11990 invoked by uid 99); 7 Aug 2007 18:42:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 11:42:39 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 18:42:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EB846714208 for ; Tue, 7 Aug 2007 11:41:59 -0700 (PDT) Message-ID: <7002302.1186512119962.JavaMail.jira@brutus> Date: Tue, 7 Aug 2007 11:41:59 -0700 (PDT) From: "Patrick Linskey (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-113) when you specify columm table="empbean" in the xml file entity id or basic type when empbean is the default table name, the mapping tool generates extra foreign key field (eg.EmpBean_empid) in the table produced. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey updated OPENJPA-113: ------------------------------------ Fix Version/s: (was: 0.9.8) > when you specify columm table="empbean" in the xml file entity id or basic type when empbean is the default table name, the mapping tool generates extra foreign key field (eg.EmpBean_empid) in the table produced. > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-113 > URL: https://issues.apache.org/jira/browse/OPENJPA-113 > Project: OpenJPA > Issue Type: Bug > Environment: windows xp, openjpa_097_incubating > Reporter: George Hongell > Assignee: Michael Dick > Priority: Minor > > when you specify columm table="empbean" in the xml file entity id or basic type when empbean is the default table name, the mapping tool generates extra foreign key field (eg.EmpBean_empid) in the table produced. This causes a SQL0203 (A reference to column name is ambiguous) on empid when you try to persist this entity. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 4787 mdd TRACE [main] openjpa.jdbc.SQL - executing stmnt 1129857880 CREATE TABLE EmpBean (empid INTEGER NOT NULL, bonus DOUBLE, execLevel INTEGER, hireDate DATE, hireTime TIME, hireTimestamp TIMESTAMP, isManager SMALLINT, name VARCHAR(40), EmpBean_empid INTEGER, salary DOUBLE, dept_deptno INTEGER, home_street VARCHAR(40), work_street VARCHAR(40), PRIMARY KEY (empid)) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.