Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 52039 invoked from network); 19 Jul 2007 13:04:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jul 2007 13:04:57 -0000 Received: (qmail 23113 invoked by uid 500); 19 Jul 2007 13:04:35 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 23097 invoked by uid 500); 19 Jul 2007 13:04:34 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 23084 invoked by uid 99); 19 Jul 2007 13:04:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 06:04:34 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of JCasero@covansys.com designates 12.162.224.65 as permitted sender) Received: from [12.162.224.65] (HELO fth-smtp01.covansys.com) (12.162.224.65) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 06:04:31 -0700 Received: from fth-ex04.CVNS.corp.covansys.com ([10.3.82.22]) by fth-smtp01.covansys.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 19 Jul 2007 09:04:11 -0400 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7CA05.4C81691D" Subject: Collection field part of a compound primary key Content-Transfer-Encoding: 7bit Date: Thu, 19 Jul 2007 09:04:10 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Collection field part of a compound primary key Importance: normal thread-index: AcfKBUvli9ceIcuFQoq1ReJQcXGPUw== Priority: normal From: "CASERO Jaime" To: Cc: "ALONSO Fernando" X-OriginalArrivalTime: 19 Jul 2007 13:04:11.0222 (UTC) FILETIME=[4C9AF760:01C7CA05] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7CA05.4C81691D Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello all, I'm wondering if OpenJPA supports the creation of a compound primary key formed by a basic field, and a collection. I have tried using an "Id class", and using "unique-constraint", but without any results. =20 I think this is a very basic feature (A foreign key is part of the primary key) used frequently in any relational data model.=20 =20 Can anyone confirm this feature support?. Any simple example would be very appreciated. =20 Thanks in advance, regards. =20 Jaime Casero =20 Confidentiality Statement: =20 This message is intended only for the individual or entity to which it = is addressed. It may contain privileged, confidential information which = is exempt from disclosure under applicable laws. If you are not the = intended recipient, please note that you are strictly prohibited from = disseminating or distributing this information (other than to the = intended recipient) or copying this information. If you have received = this communication in error, please notify us immediately by return = email. ----------------------------- ------_=_NextPart_001_01C7CA05.4C81691D--