Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 28700 invoked from network); 29 Feb 2008 17:14:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 17:14:24 -0000 Received: (qmail 54464 invoked by uid 500); 29 Feb 2008 17:14:19 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 54441 invoked by uid 500); 29 Feb 2008 17:14:19 -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 54432 invoked by uid 99); 29 Feb 2008 17:14:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 09:14:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of plinskey@gmail.com designates 209.85.142.184 as permitted sender) Received: from [209.85.142.184] (HELO ti-out-0910.google.com) (209.85.142.184) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 17:13:45 +0000 Received: by ti-out-0910.google.com with SMTP id y6so4019166tia.13 for ; Fri, 29 Feb 2008 09:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=T9nylTCLm7EcRJlneF8EkkUnqWHlH6hGUwEXrLjcv2M=; b=GmtJu+u+zAFFV1Gb7vFL/KVQlWHVT/41kLe9As61RzquL3o5Yx3FZbqHfaile/9zSSorNcT6kPy1B6ZwWFkB+cIzbdZbDcF967aX/qBP/xUgT6szuNLXf8UJhzZcl1XXmM/hgCfMZSRZE8PCz080l9matbLpSoZcadDYahG9Qb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mFvJ03aBbZprXXb6bigB/Kuu8iT9gAB5786oaSeWcde8osAXkAcfYHfJ4xlTPA+KkyU08wfRF59MT1RS7EsYSu1XaZP6Cf55BJXZXKVdxPj3g5vyrMkCjETEC8EMyxTxmOWyYBZW5I8E5ecowW4F8SmhiSaourwIMbGheVrJNgU= Received: by 10.150.226.15 with SMTP id y15mr3379699ybg.145.1204305232733; Fri, 29 Feb 2008 09:13:52 -0800 (PST) Received: by 10.150.158.20 with HTTP; Fri, 29 Feb 2008 09:13:52 -0800 (PST) Message-ID: <7262f25e0802290913t4f317e22mbe0d2b300487809a@mail.gmail.com> Date: Fri, 29 Feb 2008 09:13:52 -0800 From: "Patrick Linskey" To: dev@openjpa.apache.org Subject: Re: how to tell openjpa to not worry about non-entity abstract superclasses of entities In-Reply-To: <10A07631-FF54-4459-98C4-8F19A80C25AB@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10A07631-FF54-4459-98C4-8F19A80C25AB@pobox.com> X-Virus-Checked: Checked by ClamAV on apache.org > How can I tell OpenJPA to ignore it? Don't ask OpenJPA to enhance it. How are you invoking the enhancer? It sounds like you're either specifying a list of classes to enhance, including the new superclass, or you're specifying nothing, and the new superclass is listed in your persistence.xml. -Patrick On Fri, Feb 29, 2008 at 5:48 AM, Geir Magnusson Jr. wrote: > After a bit of refactoring, I have a set of entity classes that have a > common abstract ancestor. This ancestor has nothing JPA-ish about it. > > However, when I run the enhancer (v1.0.2) I get : > > [openjpac] 1003 pu WARN [main] openjpa.Enhance - Type "class > com.joost.model.codes.AbstractControlledListItem" has no metadata; > enhancing as persistence aware. If you intended for "class > com.joost.model.codes.AbstractControlledListItem" to be persistence- > capable, then this means that OpenJPA could not find any metadata for > "class com.joost.model.codes.AbstractControlledListItem". This can > happen if the directory containing your metadata is not in your > CLASSPATH, or if your metadata files are not named properly. See the > documentation on metadata placement for more information. > > How can I tell OpenJPA to ignore it? > > geir > > > -- Patrick Linskey 202 669 5907