openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kariem Hussein <kariem.huss...@gmail.com>
Subject Re: Question regarding "constant" parameter replacement in JPQL
Date Mon, 20 Jul 2015 18:40:31 GMT
On Mon, Jul 20, 2015 at 4:58 PM, Kariem Hussein <kariem.hussein@gmail.com>
wrote:

> [...] it does not work, when I set the appropriate hint in orm.xml:
>
>     <named-query name="person.v">
>       <query>
>         select p
>         from Person p
>         where p.type = 'V'
>       </query>
>       <hint name="openjpa.hint.UseLiteralInSQL" value="true" />
>     </named-query>
>
> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message