Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 34688 invoked from network); 6 Mar 2009 00:22:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2009 00:22:24 -0000 Received: (qmail 52399 invoked by uid 500); 6 Mar 2009 00:22:23 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 52376 invoked by uid 500); 6 Mar 2009 00:22:23 -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 52365 invoked by uid 99); 6 Mar 2009 00:22:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 16:22:23 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1214986235816-210739@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 00:22:15 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LfNp4-0005i6-GB for dev@openjpa.apache.org; Thu, 05 Mar 2009 16:21:54 -0800 Message-ID: <1236298914495-2433186.post@n2.nabble.com> Date: Thu, 5 Mar 2009 16:21:54 -0800 (PST) From: Pinaki Poddar To: dev@openjpa.apache.org Subject: Re: my report regarding MethodQL in the user list In-Reply-To: <19DA2CE7-3AB1-47D4-A80B-79D858AA4769@logemann.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ppoddar@apache.org References: <19DA2CE7-3AB1-47D4-A80B-79D858AA4769@logemann.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Add the extra lines, see if that changes anything: OpenJPAEntityManager oem = OpenJPAPersistence.cast(em); OpenJPAQuery query = oem.createQuery("openjpa.MethodQL", "some.full.cls.method"); query.setResultClass(MyResultType.class); + ((org.apache.openjpa.persistence.QueryImpl)query).getDelegate() + .declareParameters("String firstName, String lastName"); query.setParameter(1, "Fred").setParameter(2, "Lucas"); Marc Logemann wrote: > > Hi, > > i created a Jira for the issue explained in the user list: > https://issues.apache.org/jira/browse/OPENJPA-955 > > I debugged about an hour or something and put my findings into the > jira issue. Quite complex stuff with all the delegates, so i wasnt > able to fix it.... perhaps someone else is good in that code "area". > > Marc > -- View this message in context: http://n2.nabble.com/my-report-regarding-MethodQL-in-the-user-list-tp2430597p2433186.html Sent from the OpenJPA Developers mailing list archive at Nabble.com.