Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 58666 invoked from network); 5 Apr 2007 00:41:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Apr 2007 00:41:53 -0000 Received: (qmail 26226 invoked by uid 500); 5 Apr 2007 00:42:00 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 26191 invoked by uid 500); 5 Apr 2007 00:42:00 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 26181 invoked by uid 99); 5 Apr 2007 00:42:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 17:42:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED,UPPERCASE_25_50 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; Wed, 04 Apr 2007 17:41:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 452B7714066 for ; Wed, 4 Apr 2007 17:41:32 -0700 (PDT) Message-ID: <32406034.1175733692243.JavaMail.jira@brutus> Date: Wed, 4 Apr 2007 17:41:32 -0700 (PDT) From: "George Hongell (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Created: (OPENJPA-201) Mapping Tool ignores the @JoinColumn annotation in a @ManyToOne mapping if the table argument is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mapping Tool ignores the @JoinColumn annotation in a @ManyToOne mapping if the table argument is used ----------------------------------------------------------------------------------------------------- Key: OPENJPA-201 URL: https://issues.apache.org/jira/browse/OPENJPA-201 Project: OpenJPA Issue Type: Bug Environment: 0.9.7-incubating-SNAPSHOT Reporter: George Hongell @Entity @Table(name="CxWine") public class Wine { @Id private Integer wineid; ... @ManyToOne() @JoinColumn(name="NEW_WINERY_WINERYID", referencedColumnName="WINERYID", table="cxWinery") //ignored @JoinColumn(name="NEW_WINERY_WINERYID", referencedColumnName="WINERYID", table="cxWinery") //ignored @JoinColumn(name="NEW_WINERY_WINERYID", referencedColumnName="WINERYID", table="cxWinery") //ignored @JoinColumn(name="NEW_WINERY_WINERYID", table="cxWINERY") //ok @JoinColumn(name="NEW_WINERY_WINERYID", referencedColumnName="wineryid") //ok @JoinColumn(name="NEW_WINERY_WINERYID") private Winery winery; ... } generates 2744 cxwineTour TRACE [main] openjpa.jdbc.SQL - executing stmnt 1325027066 CREATE TABLE CxWine (wineid INTEGER NOT NULL, cost SMALLINT, description VARCHAR(254), minimumHoldYears INTEGER, rating SMALLINT, stockCount INTEGER, type VARCHAR(20), version INTEGER, alcoholPercent DOUBLE, ava VARCHAR(40), bottler VARCHAR(40), brandName VARCHAR(40), labelWineClass VARCHAR(20), labelWineColor VARCHAR(20), estateBottled SMALLINT, hasSulfites SMALLINT, labelid INTEGER, mlContents INTEGER, qualityDesignation VARCHAR(40), vineyardName VARCHAR(40), vintage TIMESTAMP, wineName VARCHAR(40), winery_wineryid INTEGER, PRIMARY KEY (wineid)) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.