Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 16207 invoked from network); 17 Apr 2009 15:45:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Apr 2009 15:45:51 -0000 Received: (qmail 10724 invoked by uid 500); 17 Apr 2009 15:45:51 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 10677 invoked by uid 500); 17 Apr 2009 15:45:51 -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 10667 invoked by uid 99); 17 Apr 2009 15:45:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2009 15:45:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2009 15:45:40 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LuqFj-0000Vc-Hb for users@openjpa.apache.org; Fri, 17 Apr 2009 08:45:19 -0700 Message-ID: <1239983119529-2651445.post@n2.nabble.com> Date: Fri, 17 Apr 2009 08:45:19 -0700 (PDT) From: Pinaki Poddar To: users@openjpa.apache.org Subject: Re: Eclipse Plugin for openJPA -> Enhancement incorrect In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ppoddar@apache.org References: <1239851225705-2641707.post@n2.nabble.com> <1239857476559-2641942.post@n2.nabble.com> <1239884871149-2642589.post@n2.nabble.com> <1239892046638-2642836.post@n2.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, The plug-in merely invokes enhancer on classes as part of incremental or batch compilation phase of Eclipse. Does the result vary if the project is cleaned and rebuilt? (just trying to find out whether the error is introduced by incremental compilation). Few other people had reported using the plug-in. But they had not reported such error. That is why I am wondering if enhancement is broken so badly as you have reported then whether their dev project could have worked at all. My current bandwidth is pretty overloaded to probe it in near future, but if someone can verify this reported erroneous behavior will be really helpful. At the time of writing the plug-in, I had pondered over the decision to package a fixed version of OpenJPA libraries with the plugin itself. A more flexible scenario should allow the user to chose an option of using the plug-in with a OpenJPA version different than what the plug-in contains. But given that the plugin was my first ever (novice) attempt to understand how Eclipse plug-in framework works and also to ease the enhancement process -- I have postponed that possibility. Hello, I'm currently trying to use the Eclipse Plugin provided at http://people.apache.org/~ppoddar/eclipse. Unfortunately, this uses the new 2.0 SNAPSHOT with seems to have some issues in enhancing the persistent classes. Only primitive types are enhanced at all. All @OneToOne or @OneToMany Relationships are completely ignored. In case I do the enhancement by myself using the PCEnhancer, the files are correctly enhanced, so I'm unsure what the Plugin is doing differently. Here is an example of what the Plugin does (decompiled) public void setBranche(Branche branche) { this.branche = branche; } public Branche getBranche() { return this.branche; } and what the PCEnhancer does correctly: public void setBranche(Branche branche) { pcSetbranche(this, branche); } public Branche getBranche() { return pcGetbranche(this); } Any suggestions in this direction? Thanks, Heiko PS: Does anybody know a good Howto on setting up openJPA 1.2 or the nightly build of 2.0 on a Websphere 6.1 + EJB3 FP? It's really a pain to circumvent the existing openJPA 1.0.4-SNAPSHOP in there. I've tried a lot and I can't manage to make IBM's code NOT interfere with my own JPA implementation. -- Dr.-Ing. Heiko Kopp / Fa. GFI - iT media Consult GmbH c/o Mercedes-Benz Bank HPC 032 - ITF/FS-DPS 70469 Stuttgart Tel.: 0711 2574-6144 Fax: 0711 2574-96144 E-Mail: it-media.kopp@daimler.com If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. ----- Pinaki Poddar http://ppoddar.blogspot.com/ http://www.linkedin.com/in/pinakipoddar OpenJPA PMC Member/Committer JPA Expert Group Member -- View this message in context: http://n2.nabble.com/Looking-for-advice-on-JPA-based-DAO-tp2641707p2651445.html Sent from the OpenJPA Users mailing list archive at Nabble.com.