Hi,Could you please be more specific as to what you tried? I'm a bit confused as to whether you're talking about a ToOne relationship or a ToMany relationship being used as part of a primary key.
It would help if you would post your class (just the id fields would be fine) and the id class you tried.
THanks, Craig On Jul 19, 2007, at 6:04 AM, CASERO Jaime wrote:
Hello all,I'm wondering if OpenJPA supports the creation of a compoundprimary key formed by a basic field, and a collection. I have tried using an "Id class", and using "unique-constraint", but without any results.I think this is a very basic feature (A foreign key is partof the primary key) used frequently in any relational data model.Can anyone confirm this feature support?. Any simple examplewould be very appreciated. Thanks in advance, regards. Jaime Casero Confidentiality Statement: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.-----------------------------
Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
smime.p7s
Description: S/MIME cryptographic signature
