From dev-return-20370-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Apr 10 19:29:34 2012 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5FEE9A13 for ; Tue, 10 Apr 2012 19:29:34 +0000 (UTC) Received: (qmail 89651 invoked by uid 500); 10 Apr 2012 19:29:34 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 89613 invoked by uid 500); 10 Apr 2012 19:29:34 -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 89605 invoked by uid 99); 10 Apr 2012 19:29:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 19:29:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 19:29:33 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4A6E43642A6 for ; Tue, 10 Apr 2012 19:29:13 +0000 (UTC) Date: Tue, 10 Apr 2012 19:29:13 +0000 (UTC) From: "Albert Lee (Created) (JIRA)" To: dev@openjpa.apache.org Message-ID: <1552830567.9155.1334086153306.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (OPENJPA-2170) Multiple INSERT of the same row in batch update manager MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Multiple INSERT of the same row in batch update manager ------------------------------------------------------- Key: OPENJPA-2170 URL: https://issues.apache.org/jira/browse/OPENJPA-2170 Project: OpenJPA Issue Type: Bug Components: jdbc Affects Versions: 2.2.0, 2.3.0 Reporter: Albert Lee Assignee: Albert Lee Priority: Minor Fix For: 2.3.0 When trying to persist multiple different entities to the data base using the batching update manager, if an INSERT failed, the update manager will erroronously attempt to INSERT the same row to the database again. E.g. em.persist(entity_type_1_id_1); // failed with a SQLException on INSERT em.persist(entity_type_2_id_2); em.flush(); will cause 2 insert of : INSERT ENTITY_TYPE_1 ...... WHERE ID="ID_1" Failed with an SQLException and insert the same row again. INSERT ENTITY_TYPE_1 ...... WHERE ID="ID_1" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira