From dev-return-21057-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Oct 9 18:14:04 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 207E5DD59 for ; Tue, 9 Oct 2012 18:14:04 +0000 (UTC) Received: (qmail 63847 invoked by uid 500); 9 Oct 2012 18:14:03 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 63807 invoked by uid 500); 9 Oct 2012 18:14:03 -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 63797 invoked by uid 99); 9 Oct 2012 18:14:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 18:14:03 +0000 Date: Tue, 9 Oct 2012 18:14:03 +0000 (UTC) From: "Albert Lee (JIRA)" To: dev@openjpa.apache.org Message-ID: <277263501.15848.1349806443868.JavaMail.jiratomcat@arcas> In-Reply-To: <1824195200.45451.1331326617400.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (OPENJPA-2152) Don't process query hints when LockModeType == NONE 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-2152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee resolved OPENJPA-2152. --------------------------------- Resolution: Fixed > Don't process query hints when LockModeType == NONE > --------------------------------------------------- > > Key: OPENJPA-2152 > URL: https://issues.apache.org/jira/browse/OPENJPA-2152 > Project: OpenJPA > Issue Type: Improvement > Components: query > Affects Versions: 2.3.0, 2.2.1 > Reporter: Kevin Sutter > Assignee: Kevin Sutter > Fix For: 2.3.0, 2.2.1 > > > When processing a named query, we look to see what the LockModeType should be set to as a hint for the query. But, if the LockModeType is the default (NONE), there is no reason to set that as a hint. So, if the required LockModeType turns out to be NONE, then we're going to skip setting this hint. Hint processing is kind of expensive for Queries, so the less we do the better. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira