Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 72037 invoked from network); 22 Nov 2010 13:36:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 13:36:02 -0000 Received: (qmail 55474 invoked by uid 500); 22 Nov 2010 13:36:34 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 55214 invoked by uid 500); 22 Nov 2010 13:36:31 -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 55206 invoked by uid 99); 22 Nov 2010 13:36:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 13:36:30 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.174] (HELO mail-gy0-f174.google.com) (209.85.160.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 13:36:21 +0000 Received: by gyb11 with SMTP id 11so1348233gyb.33 for ; Mon, 22 Nov 2010 05:36:00 -0800 (PST) Received: by 10.100.205.10 with SMTP id c10mr3411609ang.172.1290432960104; Mon, 22 Nov 2010 05:36:00 -0800 (PST) Received: from brevsnb005 (CPE-138-130-72-189.lns1.cht.bigpond.net.au [138.130.72.189]) by mx.google.com with ESMTPS id d8sm5813727ana.2.2010.11.22.05.34.51 (version=SSLv3 cipher=RC4-MD5); Mon, 22 Nov 2010 05:35:59 -0800 (PST) From: "C N Davies" To: References: <4CEA677B.5050304@su3analytics.com> In-Reply-To: <4CEA677B.5050304@su3analytics.com> Subject: RE: OpenJPA Eclipse Tooling plugin - missing entity relationships Date: Tue, 23 Nov 2010 00:34:42 +1100 Message-ID: <005401cb8a4a$33665ab0$9a331010$@cndavies.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQI9LGEQ2SRCtxqCV0fKJT78Dd6CEJKaOaCQ Content-Language: en-au X-Virus-Checked: Checked by ClamAV on apache.org Don't waste your time with anything other than the ant built, all these plugins and such will drive you mad tying to troubleshoot issues completely unrelated to enhancement. I learned this the hard way because I was trying to avoid using ant, it's an apache project so they expect you to use ant. Chris -----Original Message----- From: Joel Halbert [mailto:joel@su3analytics.com] Sent: Monday, 22 November 2010 11:52 PM To: users@openjpa.apache.org Subject: OpenJPA Eclipse Tooling plugin - missing entity relationships Hi, I have installed the OpenJPA Eclipse Tooling plugin, to provide compile time enhancement. My source spans two projects, project1 & project2. The code in project2 is dependent on project1. I have some entities in project2 that have a ManyToOne attribute, using an Entity in project1. e.g. @Entity @Access(AccessType.PROPERTY) Project1Entity { private Project2Entity project2Entity; @ManyToOne public Project2Entity getProject2Entity () { return project2Entity; } public voidsetProject2Entity (Project2Entity e) { this.project2Entity = e; } } This used to work fine with runtime enhancement, but it no longer works with compile time enhancement - when the Project1Entity table is created it is now missing the Project2Entity field. Could this be related to the fact that my entities are across two distinct eclipse projects? Both projects have the openjpa Bytecode enhancer set. Thanks Joel