Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 92062 invoked from network); 11 Feb 2009 13:48:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2009 13:48:27 -0000 Received: (qmail 15471 invoked by uid 500); 11 Feb 2009 13:48:27 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 15304 invoked by uid 500); 11 Feb 2009 13:48:26 -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 15289 invoked by uid 99); 11 Feb 2009 13:48:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 05:48:26 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.13.13.46] (HELO smtp107.prem.mail.ac4.yahoo.com) (76.13.13.46) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 11 Feb 2009 13:48:15 +0000 Received: (qmail 49991 invoked from network); 11 Feb 2009 13:47:49 -0000 Received: from unknown (HELO Macintosh.local) (dwoods@75.177.173.152 with plain) by smtp107.prem.mail.ac4.yahoo.com with SMTP; 11 Feb 2009 13:47:49 -0000 X-YMail-OSG: C4HlJXoVM1lReXwLl2IU7hhTYgKdnQwZXHovEfy2FUFd_1DvF9AqA67_PoZnIJkmpksCoIvDnjTNpXmWVY.rLsuLAwYUzbezjZtxIVkI9ne.CpThYNfAn6GenGdtOLyGaHSW7ai8xXpHfIWC85P8.fM915tylIjFfqTV1h7MUNuNQMZk03ldPkUWb2kJ1AOpFA_ne8bt9HJCV.8Cb2HrIokuU7AC X-Yahoo-Newman-Property: ymail-3 Message-ID: <4992D704.5080604@apache.org> Date: Wed, 11 Feb 2009 08:47:48 -0500 From: Donald Woods User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: dev@openjpa.apache.org Subject: Re: svn commit: r743270 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java References: <20090211081238.6A7A423888F4@eris.apache.org> <4992D4D4.3090004@apache.org> In-Reply-To: <4992D4D4.3090004@apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sorry, thought this was an update as part of 899, but no I noticed it was a user bug. BTW - is this going into 12x (which Geronimo will pickup) and 13x? -Donald Donald Woods wrote: > Thought this was supposed to be part of my OPENJPA-878 for the Spec > 3.6.4 feature? > > Are you in the process of implementing all of the QueryHint support? > > > -Donald > > > ppoddar@apache.org wrote: >> Author: ppoddar >> Date: Wed Feb 11 08:12:37 2009 >> New Revision: 743270 >> >> URL: http://svn.apache.org/viewvc?rev=743270&view=rev >> Log: >> OPENJPA-898: Parse query hints for NamedNativeQuery >> >> Modified: >> >> openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java >> >> >> Modified: >> openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java >> >> URL: >> http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java?rev=743270&r1=743269&r2=743270&view=diff >> >> ============================================================================== >> >> --- >> openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java >> (original) >> +++ >> openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java >> Wed Feb 11 08:12:37 2009 >> @@ -1721,6 +1721,8 @@ >> >> if (!StringUtils.isEmpty(query.resultSetMapping())) >> meta.setResultSetMappingName(query.resultSetMapping()); >> + for (QueryHint hint : query.hints()) >> + meta.addHint(hint.name(), hint.value()); >> >> meta.setSource(getSourceFile(), (el instanceof Class) ? >> el : null, >> meta.SRC_ANNOTATIONS); >> >> >> >