From dev-return-18629-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Feb 22 02:07:05 2011 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 80583 invoked from network); 22 Feb 2011 02:07:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 02:07:05 -0000 Received: (qmail 10699 invoked by uid 500); 22 Feb 2011 02:07:05 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 10580 invoked by uid 500); 22 Feb 2011 02:07:04 -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 10572 invoked by uid 99); 22 Feb 2011 02:07:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 02:07:04 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX 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, 22 Feb 2011 02:07:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D805E1B0917 for ; Tue, 22 Feb 2011 02:06:41 +0000 (UTC) Date: Tue, 22 Feb 2011 02:06:41 +0000 (UTC) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Message-ID: <1932955890.7225.1298340401881.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1277819328.623.1298039858486.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (OPENJPA-1944) Extra select statements executed when version column is null. 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 [ https://issues.apache.org/jira/browse/OPENJPA-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick resolved OPENJPA-1944. ----------------------------------- Resolution: Fixed > Extra select statements executed when version column is null. > -------------------------------------------------------------- > > Key: OPENJPA-1944 > URL: https://issues.apache.org/jira/browse/OPENJPA-1944 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.2.2, 2.1.0 > Reporter: Michael Dick > Assignee: Michael Dick > Fix For: 2.2.0 > > > This problem was originally reported on the users mailing list by Diego Cattelan. Link to the thread :http://openjpa.208410.n2.nabble.com/N-query-problem-with-Version-td6027619.html > The problem occurs if a null value is returned for an entity's version field. In this case OpenJPA will issue a second select statement to re-fetch the version, potentially resulting in a lot of repetitive SQL statements. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira