From dev-return-18767-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Mar 22 14:38:46 2011 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 42319 invoked from network); 22 Mar 2011 14:38:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 14:38:46 -0000 Received: (qmail 41906 invoked by uid 500); 22 Mar 2011 14:38:46 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 41880 invoked by uid 500); 22 Mar 2011 14:38:46 -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 41872 invoked by uid 99); 22 Mar 2011 14:38:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 14:38:46 +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 Mar 2011 14:38:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C6630425BD for ; Tue, 22 Mar 2011 14:38:05 +0000 (UTC) Date: Tue, 22 Mar 2011 14:38:05 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Message-ID: <831625173.3771.1300804685809.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1277819328.623.1298039858486.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (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 [ https://issues.apache.org/jira/browse/OPENJPA-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis reopened OPENJPA-1944: ---------------------------------- Reopening this JIRA as it needs a bit more work. > 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: Rick Curtis > 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