Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 30189 invoked from network); 9 Aug 2010 19:44:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Aug 2010 19:44:37 -0000 Received: (qmail 58703 invoked by uid 500); 9 Aug 2010 19:44:37 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 58558 invoked by uid 500); 9 Aug 2010 19:44:37 -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 58549 invoked by uid 99); 9 Aug 2010 19:44:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 19:44:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 19:44:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o79JiFdH015842 for ; Mon, 9 Aug 2010 19:44:16 GMT Message-ID: <4773868.240091281383055873.JavaMail.jira@thor> Date: Mon, 9 Aug 2010 15:44:15 -0400 (EDT) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-1762) javax.persistence.lock.scope EXTENDED doesn't properly lock join tables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 javax.persistence.lock.scope EXTENDED doesn't properly lock join tables ----------------------------------------------------------------------- Key: OPENJPA-1762 URL: https://issues.apache.org/jira/browse/OPENJPA-1762 Project: OpenJPA Issue Type: Bug Components: jdbc Affects Versions: 2.0.1, 2.1.0 Environment: Derby and DB2 Reporter: Rick Curtis Attachments: OPENJPA-1762.PATCH I have a simple failing unit test that exercises a small portion of the javax.persistence.lock.scope=Extended property. The failing scenario is as follows: ManyToMany relationship between A(owner) and B. Em1 - Find A, no lock Em1 - Refresh A, PESSIMISTIC_FORCE_INCREMENT and javax.persistence.lock.scope=PessimisticLockScope.EXTENDED -- this SHOULD lock the join table for A_B Em2 - Find, lock B. Remove B. should block while trying to remove from Join table. I will post the unit test which demonstrates the problem shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.