Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 9008 invoked from network); 12 Jan 2007 20:37:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2007 20:37:02 -0000 Received: (qmail 14063 invoked by uid 500); 12 Jan 2007 20:37:08 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 14032 invoked by uid 500); 12 Jan 2007 20:37:08 -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 14023 invoked by uid 99); 12 Jan 2007 20:37:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 12:37:08 -0800 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of vtatavu@ca.ibm.com designates 32.97.182.144 as permitted sender) Received: from [32.97.182.144] (HELO e4.ny.us.ibm.com) (32.97.182.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 12:36:57 -0800 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e4.ny.us.ibm.com (8.13.8/8.12.11) with ESMTP id l0CKaZJA011925 for ; Fri, 12 Jan 2007 15:36:35 -0500 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id l0CKaZBI298164 for ; Fri, 12 Jan 2007 15:36:35 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l0CKaZMs023987 for ; Fri, 12 Jan 2007 15:36:35 -0500 Received: from d25ml02.torolab.ibm.com (d25ml02.torolab.ibm.com [9.26.6.103]) by d01av03.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l0CKaZZp023974 for ; Fri, 12 Jan 2007 15:36:35 -0500 In-Reply-To: To: open-jpa-dev@incubator.apache.org Subject: Re: @ForeignKey not allowed for @ManyToMany MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 Message-ID: From: Vlad Tatavu Date: Fri, 12 Jan 2007 15:36:21 -0500 X-MIMETrack: Serialize by Router on D25ML02/25/M/IBM(Release 7.0.1HF346 | August 4, 2006) at 01/12/2007 15:36:35, Serialize complete at 01/12/2007 15:36:35 Content-Type: multipart/alternative; boundary="=_alternative 0071366D85257261_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 0071366D85257261_= Content-Type: text/plain; charset="US-ASCII" I wouldn't say that's obvious, but it make sense and it works. Thanks! Vlad Abe White 12/01/2007 03:24 PM Please respond to open-jpa-dev@incubator.apache.org To open-jpa-dev@incubator.apache.org cc Subject Re: @ForeignKey not allowed for @ManyToMany > Is there a reason why @ForeignKey is not allowed for @ManyToMany? Because the field value is a collection, not a reference. You want to use @ElementForeignKey. _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --=_alternative 0071366D85257261_=--