From dev-return-4794-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Jul 09 14:00:59 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 37512 invoked from network); 9 Jul 2007 14:00:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2007 14:00:58 -0000 Received: (qmail 65776 invoked by uid 500); 9 Jul 2007 14:01:00 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 65748 invoked by uid 500); 9 Jul 2007 14:01:00 -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 65739 invoked by uid 99); 9 Jul 2007 14:01:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 07:01:00 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of michael.d.dick@gmail.com designates 209.85.132.251 as permitted sender) Received: from [209.85.132.251] (HELO an-out-0708.google.com) (209.85.132.251) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 07:00:56 -0700 Received: by an-out-0708.google.com with SMTP id c24so1189133ana for ; Mon, 09 Jul 2007 07:00:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BVcOpFc/UGa8H/CvIgz3sft30mDACNtTJp8VPXJjMvGZzQh/gBpl9PFivtIib/XOd16Sagi5teGedWE8uvK/vbEk0wjeuqv4kehqG3Q5+jeYXs3oMaDym9KM43eHsdt8vDn6yKe3dGWEnt6lnSmaivKCpMtGYskndFqWo4A4JRQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=St81VbD68QxwbdQjKLmeX106mh5DiDxlwoMTqN/rgekEt/nozrPrXfOpmctDQViKdm2GBh8bxJ6lfis2sNWoHtfUeqA1nIFSRoBbSOF2JSRZDpCI2x+7/8/SAgDMqdp6/3Ef7AiuwUCj3dPWG+iSMl3+cb0H0EBMTpiMqiIrhp0= Received: by 10.100.111.16 with SMTP id j16mr1581226anc.1183989635903; Mon, 09 Jul 2007 07:00:35 -0700 (PDT) Received: by 10.100.7.17 with HTTP; Mon, 9 Jul 2007 07:00:35 -0700 (PDT) Message-ID: <72c1350f0707090700v472d1abdpf1b53933931e40f@mail.gmail.com> Date: Mon, 9 Jul 2007 09:00:35 -0500 From: "Michael Dick" To: dev@openjpa.apache.org, users@openjpa.apache.org Subject: Re: Can I use JPA PCEnhancer !! In-Reply-To: <11500561.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_150627_12000040.1183989635877" References: <11499932.post@talk.nabble.com> <1b5bfeb50707090446t8fafab5rc7c64e1c13501b8a@mail.gmail.com> <11500561.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_150627_12000040.1183989635877 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm not sure I understand the question. If you're asking whether you can use another vendor's enhancer instead of OpenJPA's enhancer the answer is no. The enhancement processing is not covered in the JPA specification and is vendor specific, and OpenJPA will not work unless you have enhanced your entities. I believe you can use other enhancers in addition to the OpenJPA enhancer. For example you could enhance your entities through the OpenJPA PCEnhancer and then enhance them with another tool or use the javaagent mechanism to do runtime bytecode insertion if you desire. Depending on which third party enhancer you use there is the potential for collisions, but in most cases a third-party enhancer will work fine. Hope this helps, Mike On 7/9/07, Sreedhar.sirigiri wrote: > > > I meant any other PCEnhancer not JPA enhancer. Sorry for that. > > Sreedhar > > > > Jacek Laskowski-4 wrote: > > > > On 7/9/07, Sreedhar.sirigiri wrote: > > > >> While building the project I'm using the following script in build.xmlto > >> Enhance the classes. Is there any way I can use JPA enhancer class > >> instead > >> of openJPA enchancer? If yes, can anyone provide the details. > > > > Is there any? Where did you find JPA enhancer class? > > > > You can enhance your entities at build time and runtime. How it's done > > depends on the JPA provider you use. OpenJPA comes with PCEnhancer > > that does the job at build time. If you've found JPA enhancer it > > likely belongs to another jpa provider. > > > > BTW, the question should go to the user mailing list > > (users@openjpa.apache.org) > > > > Jacek > > > > -- > > Jacek Laskowski > > http://www.JacekLaskowski.pl > > > > > > -- > View this message in context: > http://www.nabble.com/What-other-Enhancers-can-I-use-%21%21-tf4048660.html#a11500561 > Sent from the OpenJPA Developers mailing list archive at Nabble.com. > > ------=_Part_150627_12000040.1183989635877--