Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 14005 invoked from network); 19 Aug 2009 15:19:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Aug 2009 15:19:20 -0000 Received: (qmail 1726 invoked by uid 500); 19 Aug 2009 15:19:39 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 1699 invoked by uid 500); 19 Aug 2009 15:19:39 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 1689 invoked by uid 99); 19 Aug 2009 15:19:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 15:19:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 15:19:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 43313234C044 for ; Wed, 19 Aug 2009 08:19:15 -0700 (PDT) Message-ID: <868792983.1250695155258.JavaMail.jira@brutus> Date: Wed, 19 Aug 2009 08:19:15 -0700 (PDT) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-1253) JoinColumn annotation not allowed in conjunction with *ToMany annotation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org JoinColumn annotation not allowed in conjunction with *ToMany annotation ------------------------------------------------------------------------ Key: OPENJPA-1253 URL: https://issues.apache.org/jira/browse/OPENJPA-1253 Project: OpenJPA Issue Type: Bug Components: jdbc Affects Versions: 2.0.0-M2, 2.0.0-M1, 2.0.0-M3, 2.0.0-M4, 2.0.0 Reporter: Rick Curtis Fix For: 2.0.0-M3, 2.0.0-M4, 2.0.0, 2.0.0-M2, 2.0.0-M1 I receive the following exception if I have an Entity with a One(Many)ToMany relationship with another Entity. org.apache.openjpa.persistence.ArgumentException: You have supplied columns for "....Entity", but this mapping cannot have columns in this context. To recreate the failure, add a @JoinColumn annotation to one of the *ToMany relationships in org.apache.openjpa.persistence.jdbc.annotations.AnnoTest1. example: @MapKey(name = "basic") @OneToMany(mappedBy = "oneManyOwner") @JoinColumn(name = "asdf") protected Map inverseOwnerMapKey = new HashMap(); Then run: trunk\openjpa-parent\openjpa-persistence-jdbc>mvn test -Dtest=org.apache.openjpa.persistence.jdbc.annotations.TestOneToMany -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.