From dev-return-16071-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu Apr 08 20:22:58 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 56726 invoked from network); 8 Apr 2010 20:22:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Apr 2010 20:22:58 -0000 Received: (qmail 49353 invoked by uid 500); 8 Apr 2010 20:22:57 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 49329 invoked by uid 500); 8 Apr 2010 20:22:57 -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 49321 invoked by uid 99); 8 Apr 2010 20:22:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 20:22:57 +0000 X-ASF-Spam-Status: No, hits=-1251.2 required=10.0 tests=ALL_TRUSTED,AWL,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 20:22:56 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A2A0C234C1EF for ; Thu, 8 Apr 2010 20:22:36 +0000 (UTC) Message-ID: <1057429349.20531270758156665.JavaMail.jira@brutus.apache.org> Date: Thu, 8 Apr 2010 20:22:36 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Assigned: (OPENJPA-1604) Setting PessimisticLockManager fails to append "for update clause" to the select statement In-Reply-To: <1127167746.587951269981987253.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis reassigned OPENJPA-1604: ------------------------------------ Assignee: Rick Curtis (was: Pinaki Poddar) > Setting PessimisticLockManager fails to append "for update clause" to the select statement > ------------------------------------------------------------------------------------------ > > Key: OPENJPA-1604 > URL: https://issues.apache.org/jira/browse/OPENJPA-1604 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.0.0, 2.1.0 > Reporter: Fay Wang > Assignee: Rick Curtis > Fix For: 2.0.0, 2.1.0 > > Attachments: OPENJPA-1604-2.0.x.patch, OPENJPA-1604-trunk.patch > > > I ran a testcase against openjpa 1.2, and found that the "for update" clause is appended to the SQL when > > is added to the persistence.xml without calling: > q.setLockMode(LockModeType.PESSIMISTIC_WRITE); > However, this behavior changes when running against trunk level code -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.