Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 84810 invoked from network); 8 Aug 2007 16:30:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 16:30:21 -0000 Received: (qmail 42794 invoked by uid 500); 8 Aug 2007 16:30:20 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 42764 invoked by uid 500); 8 Aug 2007 16:30:20 -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 42755 invoked by uid 99); 8 Aug 2007 16:30:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 09:30:20 -0700 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 mprudhomapache@gmail.com designates 64.233.162.232 as permitted sender) Received: from [64.233.162.232] (HELO nz-out-0506.google.com) (64.233.162.232) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 16:30:14 +0000 Received: by nz-out-0506.google.com with SMTP id q3so87544nzb for ; Wed, 08 Aug 2007 09:29:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=bSeyqGwkIkMR9JfJgm+SBvrNWUQB7alFnAkIRZ/Z1TzysIxpLZRc5EE6kX3wzEC1iPyX5d6EVVBD6mPVe+ULDEjpW9v69WT6TTdQWIpjzFhNmUHrETmlCHVVf49PdYQya+lNVI7asBJDtaTlr6579RX4T2a2YCgAk48pe/qqsC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=N+YwNjnjW3XOrJfwzIIhI36D8jD1+CfYolcM5rlKGdajsxzbXpBZJEzd66VAYTyy30giBWd0QNCINQrG2RdjN2f6ZccettHqWSxSV02UcWzgMZoi5pSzEstE1u28L+F1W8NAmWhMMLcyz0i3d3HM8jANpQuOSVx3BO6+3z7pCjg= Received: by 10.65.250.11 with SMTP id c11mr2169533qbs.1186590593313; Wed, 08 Aug 2007 09:29:53 -0700 (PDT) Received: from ?192.168.1.10? ( [66.248.222.34]) by mx.google.com with ESMTPS id q17sm380501qbq.2007.08.08.09.29.51 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Aug 2007 09:29:52 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <7262f25e0708080911n236a0335w8130e45730a2343c@mail.gmail.com> References: <7262f25e0708080911n236a0335w8130e45730a2343c@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marc Prud'hommeaux Subject: Re: OpenJPAPersistence extends Persistence; should we remove this? Date: Wed, 8 Aug 2007 09:29:39 -0700 To: dev@openjpa.apache.org X-Mailer: Apple Mail (2.752.3) Sender: Marc Prud'hommeaux X-Virus-Checked: Checked by ClamAV on apache.org Patrick- I don't know anything about the nature of the problems with the Persistence provider registry, but I don't see any reason why OpenJPAPersistence should need to extend Persistence. However, I can't imagine how simply removing the inheritance connection would solve anything. Are you suggesting that we replicate the Persistence functionality (like createEntityManagerFactory()) in our own OpenJPAPersistence class? On Aug 8, 2007, at 9:11 AM, Patrick Linskey wrote: > Hi, > > We've run into a couple of problems with the static registry > maintained in the Persistence class. Should we isolate ourselves from > it by making OpenJPAPersistence not extend Persistence? If we did so, > it would be pretty straightforward for OpenJPA to never reference > Persistence, which would mean that people who ran into trouble with > that class could work around the problems by using OpenJPA APIs > instead. > > Thoughts? > > -Patrick > > -- > Patrick Linskey > 202 669 5907