From open-jpa-dev-return-2947-apmail-incubator-open-jpa-dev-archive=incubator.apache.org@incubator.apache.org Wed Mar 28 20:29:47 2007 Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 57101 invoked from network); 28 Mar 2007 20:29:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2007 20:29:46 -0000 Received: (qmail 87880 invoked by uid 500); 28 Mar 2007 20:29:53 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 87851 invoked by uid 500); 28 Mar 2007 20:29:53 -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 87842 invoked by uid 99); 28 Mar 2007 20:29:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 13:29:53 -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; Wed, 28 Mar 2007 13:29:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 27CBD714068 for ; Wed, 28 Mar 2007 13:29:25 -0700 (PDT) Message-ID: <32064150.1175113765128.JavaMail.jira@brutus> Date: Wed, 28 Mar 2007 13:29:25 -0700 (PDT) From: "Abe White (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Closed: (OPENJPA-191) cannot define composite ID that incorproates @ManyToOne field In-Reply-To: <1109218.1175113345185.JavaMail.jira@brutus> 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-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Abe White closed OPENJPA-191. ----------------------------- Resolution: Invalid The given test case is invalid. Per the docs, the book field in the PageId class must be of type String to match the primary key field type of Book. Please reopen if that doesn't work. > cannot define composite ID that incorproates @ManyToOne field > ------------------------------------------------------------- > > Key: OPENJPA-191 > URL: https://issues.apache.org/jira/browse/OPENJPA-191 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 0.9.6 > Environment: java se 5 > derby > Reporter: Jeffrey Blatttman > Priority: Minor > Attachments: book.zip > > > cannot define composite ID that incorproates @ManyToOne field. see sample test case attached (book.zip). this is a maven2 project, and you can reproduce the bug by starting derby on localhost and doing a "mvn install". the resulting error message during enhancement is: > [java] Exception in thread "main" <4|true|0.9.6-incubating> org.apache.openjpa.util.MetaDataException: The id class specified by type "class com.mycompany.book.Page" does not match the primary key fields of the class. Make sure your identity class has the same primary keys as your persistent type, that the access types are the same, and if you are getting this error at runtime, that you have your persistent class since last compiling your identity class. > [java] FailedObject: book [java.lang.String] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.