Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 21542 invoked from network); 8 Jun 2007 00:56:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jun 2007 00:56:10 -0000 Received: (qmail 52165 invoked by uid 500); 8 Jun 2007 00:56:13 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 52139 invoked by uid 500); 8 Jun 2007 00:56:13 -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 52128 invoked by uid 99); 8 Jun 2007 00:56:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 17:56:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of plinskey@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 17:56:08 -0700 Received: by py-out-1112.google.com with SMTP id a25so1211671pyi for ; Thu, 07 Jun 2007 17:55:46 -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:content-transfer-encoding:content-disposition:references; b=T5EdT/f93yyTkboRVqx6NmndYKcRb4pPSowJeyy1Zx8d/6UOqmHbuCFiCxg31h4T8/KTyH6s4pnkx+GTLyoLcPODMOuQ9Q3XSNlfc2mBU4N48QwZgzhbNUM60wtw+IippSmmRDJrz3WRLlGPSxlCRoC/EqfLMEpTAfLFvvLQ/jo= 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:content-transfer-encoding:content-disposition:references; b=QrfUBvCBITJM3GTW6m+JchNkuYEMWR/OU9/BsqDuuYWZin4BPoA1STokCOBKSLmHnHpLQlhmqdBucBAkEbP9JriY5lbdR3wC0ZQ0F2ydhPc4C9f9y3xTg+LI3LJDlRUPV8YlXUNRrfq9MbM3f/S31yd6AZ7rpFrT73/c8bo3+lI= Received: by 10.35.83.20 with SMTP id k20mr3712576pyl.1181264146894; Thu, 07 Jun 2007 17:55:46 -0700 (PDT) Received: by 10.35.31.16 with HTTP; Thu, 7 Jun 2007 17:55:46 -0700 (PDT) Message-ID: <7262f25e0706071755y69e95a9o2fa8b7200067a6b7@mail.gmail.com> Date: Thu, 7 Jun 2007 17:55:46 -0700 From: "Patrick Linskey" To: dev@openjpa.apache.org Subject: Re: Two questions about OpenJPA impl. In-Reply-To: <46689A42.4000807@Sun.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46689A42.4000807@Sun.COM> X-Virus-Checked: Checked by ClamAV on apache.org > 1) Does OpenJPA create before images for rollback? Or is the transaction > rollback functionality just implemented in the JDO closed source? As > Reece mentions, we'd need before image values on relationships for > dependency calculation in case of unique keys. OpenJPA can do that, yes. You need to configure things accordingly, but the feature is definitely there. See the RetainValues property. > 2) Why are updates ignored (not re-ordered) in ConstraintUpdateManager, > if there are *no* delete-then-insert-same-pk? The graph is walked, which will potentially re-order the updates. What bit of code are you referring to? > 3) Can foreign keys be used in the WHERE clause for updates/deletes? Yes -- what type of query are you looking for in particular? -Patrick On 6/7/07, Markus Fuchs wrote: > Hi all, > > could somebody please answer these questions? > > 1) Does OpenJPA create before images for rollback? Or is the transaction > rollback functionality just implemented in the JDO closed source? As > Reece mentions, we'd need before image values on relationships for > dependency calculation in case of unique keys. > > 2) Why are updates ignored (not re-ordered) in ConstraintUpdateManager, > if there are *no* delete-then-insert-same-pk? > > 3) Can foreign keys be used in the WHERE clause for updates/deletes? > > Thanks so much! > > -- markus. > -- Patrick Linskey 202 669 5907