Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 77406 invoked from network); 17 Nov 2010 15:29:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 15:29:07 -0000 Received: (qmail 5357 invoked by uid 500); 17 Nov 2010 15:29:38 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 5175 invoked by uid 500); 17 Nov 2010 15:29:36 -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 5166 invoked by uid 99); 17 Nov 2010 15:29:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 15:29:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 15:29:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAHFTEPx001987 for ; Wed, 17 Nov 2010 15:29:14 GMT Message-ID: <18636175.149961290007754555.JavaMail.jira@thor> Date: Wed, 17 Nov 2010 10:29:14 -0500 (EST) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-1889) Relax query binding parameter type-checking for enum types In-Reply-To: <9151189.127701289944873309.JavaMail.jira@thor> 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-1889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pinaki Poddar resolved OPENJPA-1889. ------------------------------------ Resolution: Fixed Fix Version/s: 2.1.0 > Relax query binding parameter type-checking for enum types > ---------------------------------------------------------- > > Key: OPENJPA-1889 > URL: https://issues.apache.org/jira/browse/OPENJPA-1889 > Project: OpenJPA > Issue Type: Improvement > Components: query > Reporter: Pinaki Poddar > Assignee: Pinaki Poddar > Priority: Minor > Fix For: 2.1.0 > > > Current user-supplied query parameter values are checked strongly against the type they bind to. > For example, a query > Query q = "select p from Person p where p.gender=:g"; > q.setParameter("g", "MALE"); > will fail if Person.gender is of enum Gender {MALE,FEMALE} > The correct usage is q.setParameter("g", Gender.MALE); > We are relaxing this from the standpoint of a language-neutral client that does not have access to Gender enum type. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.