Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6874118C1B for ; Mon, 20 Jul 2015 18:53:23 +0000 (UTC) Received: (qmail 74653 invoked by uid 500); 20 Jul 2015 18:53:23 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 74611 invoked by uid 500); 20 Jul 2015 18:53:23 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 74550 invoked by uid 99); 20 Jul 2015 18:53:23 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2015 18:53:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 26E34D6388 for ; Mon, 20 Jul 2015 18:41:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id jADHt8OjstcG for ; Mon, 20 Jul 2015 18:40:58 +0000 (UTC) Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 58E9620F46 for ; Mon, 20 Jul 2015 18:40:58 +0000 (UTC) Received: by wgbcc4 with SMTP id cc4so44426341wgb.3 for ; Mon, 20 Jul 2015 11:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=rS+CfQRDLsUZEuv3MdxDQS4VOGftKsMOIxrYaiN4LmE=; b=YjYMDcbaIwi0xRCPEqWuM8u9+nmU11fJ9r/mFW9/bJKxYMd/jIsVcXSM1rER2VNJ9F uAIkB7WL67t4eCwc+SR7IXx8O+yxL/INJFK/nkHgQ6Og3thhoT1paJGesj9V2I3lyBTq R+ZsEJvtNgvX8io7ElQI0ehBsxtC/JO5qeIlZuzuox8hQj9Z6I7wjp7MBgWNMqtCIgl5 kHVcIpOUOAzCBStT2ukOrkb57BvAL+xTOxPIFspoRjajBmcPAdgvuOEzLNQigBCWGV5F zlpa39ES2bV8OJQ9e9HlMKohtByS3YwOeznI293dzESx/oGpSJoKWaaZ7DKXGvKkK0KJ a6Rg== X-Received: by 10.194.110.100 with SMTP id hz4mr59519069wjb.6.1437417651063; Mon, 20 Jul 2015 11:40:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.27.175.212 with HTTP; Mon, 20 Jul 2015 11:40:31 -0700 (PDT) In-Reply-To: References: From: Kariem Hussein Date: Mon, 20 Jul 2015 20:40:31 +0200 Message-ID: Subject: Re: Question regarding "constant" parameter replacement in JPQL To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=047d7bf1987e7c5830051b52e025 --047d7bf1987e7c5830051b52e025 Content-Type: text/plain; charset=UTF-8 On Mon, Jul 20, 2015 at 4:58 PM, Kariem Hussein wrote: > [...] it does not work, when I set the appropriate hint in orm.xml: > > > > select p > from Person p > where p.type = 'V' > > > > > Something wrong with this, or is there a limitation I am running into? > I just filed OPENJPA-2601 [1] for this and I have prepared a pull request [2]. I hope it is possible to backport this to 2.3, because we currently cannot go to 2.4. Thank you, Kariem [1] https://issues.apache.org/jira/browse/OPENJPA-2601 [2] https://github.com/apache/openjpa/pull/2 --047d7bf1987e7c5830051b52e025--