Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 70605 invoked from network); 31 Jan 2007 17:32:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 17:32:54 -0000 Received: (qmail 45828 invoked by uid 500); 31 Jan 2007 17:32:54 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 45804 invoked by uid 500); 31 Jan 2007 17:32:54 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 45781 invoked by uid 99); 31 Jan 2007 17:32:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 09:32:54 -0800 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 kwsutter@gmail.com designates 209.85.132.247 as permitted sender) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 09:32:45 -0800 Received: by an-out-0708.google.com with SMTP id b2so146082ana for ; Wed, 31 Jan 2007 09:32:24 -0800 (PST) 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=ria24iiptcSX7sctr0lrgCEl/674Pp7SP2gYyBApnG5xThZCyrIA3iB91Jf3kkOEy0nIsCiAwVbjW8Gd7euFh/BhJ9ferPO3n7Eypyk/rR8KVLYnkWPUmGlzQbdrPLoKiMGV2fA1zXvHPcv19QjXgnR39f+pbzDxORh66MDn9Zo= Received: by 10.114.181.1 with SMTP id d1mr71963waf.1170264743636; Wed, 31 Jan 2007 09:32:23 -0800 (PST) Received: by 10.115.55.4 with HTTP; Wed, 31 Jan 2007 09:32:23 -0800 (PST) Message-ID: <89c0c52c0701310932t1febafa4rcc77ad19a830f60d@mail.gmail.com> Date: Wed, 31 Jan 2007 11:32:23 -0600 From: "Kevin Sutter" To: open-jpa-dev@incubator.apache.org Subject: Re: EntityManager.clear() semantics In-Reply-To: <34FD2E58-A9BE-4DB4-8C6F-C465D4B0979C@bea.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2364_16182553.1170264743260" References: <89c0c52c0701301432y24fd36dna74225693d124b0c@mail.gmail.com> <34FD2E58-A9BE-4DB4-8C6F-C465D4B0979C@bea.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2364_16182553.1170264743260 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Understood, Abe. I just wanted to get some agreement with you and/or Patrick before pursuing this type of change. Thanks! Kevin On 1/31/07, Abe White wrote: > > > Basically, if we have dirtied the Persistence Context, then do a > > flush() > > followed by the detachAllInternal(). I don't think the clear() > > should be > > doing this flush() operation. Any disagreement? > > I agree. But note that just removing the flush call won't work for a > couple of reasons: it's needed by JDO, and we'll just flush later in > the DetachManager when we detect a dirty instance. So just a warning > that it isn't quite as trivial a fix as it might appear to be. > _______________________________________________________________________ > Notice: This email message, together with any attachments, may contain > information of BEA Systems, Inc., its subsidiaries and affiliated > entities, that may be confidential, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by email and then delete it. > ------=_Part_2364_16182553.1170264743260--