Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 23655 invoked from network); 16 Dec 2010 21:17:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Dec 2010 21:17:26 -0000 Received: (qmail 15911 invoked by uid 500); 16 Dec 2010 21:17:26 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 15888 invoked by uid 500); 16 Dec 2010 21:17:25 -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 15880 invoked by uid 99); 16 Dec 2010 21:17:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 21:17:25 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 21:17:23 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBGLH0r3012671 for ; Thu, 16 Dec 2010 21:17:01 GMT Message-ID: <32552457.165601292534220726.JavaMail.jira@thor> Date: Thu, 16 Dec 2010 16:17:00 -0500 (EST) From: "Jeremy Bauer (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-1607) Using unidirectional one-to-many target foreign key throws exception 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 [ https://issues.apache.org/jira/browse/OPENJPA-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972211#action_12972211 ] Jeremy Bauer commented on OPENJPA-1607: --------------------------------------- IIRC, the reason this new behavior wasn't simply enabled in OpenJPA 2.x.x, regardless of persistence version, is that it caused issues when running some JPA 1.0 TCK variations. With the exception of the API signature tests, we made it a priority to make sure all of the 1.0 variations passed with 2.x.x level code to help ensure backward compatibility. > Using unidirectional one-to-many target foreign key throws exception > -------------------------------------------------------------------- > > Key: OPENJPA-1607 > URL: https://issues.apache.org/jira/browse/OPENJPA-1607 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.0.0-beta3 > Reporter: Oliver Ringel > Attachments: openjpa-1607.tar > > > Using this simple unidirectional relationship > @OneToMany > @JoinColumn(name = "DEPARTMENT_ID") > private Set employees; > causes to the following exception > org.apache.openjpa.persistence.ArgumentException: You have supplied columns for "com.example.Department.employees", but this mapping cannot have columns in this context. > Unidirectional one-to-many target foreign key relationship should be supported in JPA 2.0. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.