Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 47484 invoked from network); 1 Jul 2007 20:31:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2007 20:31:25 -0000 Received: (qmail 8722 invoked by uid 500); 1 Jul 2007 20:31:28 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 8683 invoked by uid 500); 1 Jul 2007 20:31:28 -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 8674 invoked by uid 99); 1 Jul 2007 20:31:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2007 13:31:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2007 13:31:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 79AD3714168 for ; Sun, 1 Jul 2007 13:31:04 -0700 (PDT) Message-ID: <7608616.1183321864477.JavaMail.jira@brutus> Date: Sun, 1 Jul 2007 13:31:04 -0700 (PDT) From: "Patrick Linskey (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-275) Bulk updates: version information should be automatically maintained when the query does not MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Bulk updates: version information should be automatically maintained when the query does not -------------------------------------------------------------------------------------------- Key: OPENJPA-275 URL: https://issues.apache.org/jira/browse/OPENJPA-275 Project: OpenJPA Issue Type: Improvement Components: jdbc, query Affects Versions: 0.9.7, 0.9.6, 0.9.0 Reporter: Patrick Linskey Assignee: Patrick Linskey Fix For: 1.0.0 According to the JPA specification, the user must manually maintain the @Version column in objects that are updated via a bulk update. This is a potential bug in the waiting, and is impossible to do correctly for time-based version fields. OpenJPA should automatically increment version counters when a bulk update is issued that does not maintain version counters itself. Of course, this will not change the fact that bulk updates do not do any optimistic lock checks; that behavior is inherent to the nature of bulk updates in the JPA specification, since they are evaluated entirely against the database. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.