Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 80150 invoked from network); 23 Jun 2009 11:36:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jun 2009 11:36:50 -0000 Received: (qmail 52618 invoked by uid 500); 23 Jun 2009 11:37:01 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 52536 invoked by uid 500); 23 Jun 2009 11:37:01 -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 52526 invoked by uid 99); 23 Jun 2009 11:37:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 11:37:01 +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 (athena.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; Tue, 23 Jun 2009 11:36:52 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MJ4Ih-0007t5-6q for users@openjpa.apache.org; Tue, 23 Jun 2009 04:36:31 -0700 Message-ID: <1245756991206-3141920.post@n2.nabble.com> Date: Tue, 23 Jun 2009 04:36:31 -0700 (PDT) From: Rick Curtis To: users@openjpa.apache.org Subject: Re: enhancement problem In-Reply-To: <809bf8d30906222337i4841ba9dof4a3ce6258fb47f2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: curtisr7@gmail.com References: <809bf8d30906222337i4841ba9dof4a3ce6258fb47f2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org L=C3=A1szl=C3=B3 - OpenJPA does support running with unenhanced classes but it's not recommended. There are a number of known issues and there have been many discussions on disabling the support for running with unenhanced classes. I would suggest either using the -javaagent or buildtime enhancement to enhance your entities [1]. -Rick [1] http://openjpa.apache.org/entity-enhancement.html L=C3=A1szl=C3=B3 Horny=C3=A1k wrote: >=20 > Hi! >=20 > I am using OpenJPA 1.2.1 on jdk 1.6 and I get this exception when running > a > JPA-QL. > I have the class listed in persistence.xml. I do not run enhancer, but > OpenJPA supports unenhanced classes on java 1.6. > 'foo.Bar' is an abstract class and it is the superclass of most of my > persistent beans. > Also, the strange thing is that I can persist the instances of the derive= d > classes, but I still get this exception when I try to run a query. >=20 > ..... >=20 >=20 --=20 View this message in context: http://n2.nabble.com/enhancement-problem-tp31= 40721p3141920.html Sent from the OpenJPA Users mailing list archive at Nabble.com.