Re: OpenJpa 2.2.0 - Literal is not truly literal when generating sql.

2014-02-18 Thread Craig Taylor
Confirmed. Thanks. On Tue, Feb 18, 2014 at 2:58 PM, Rick Curtis wrote: > Craig - > > It looks like OPENJPA-2324[1] might be what you are looking for? > > Heath -- Any chance that we can get some documentation for this change? > > [1] https://issues.apache.org/jira/browse/OPENJPA-2324 > > Thanks

How to find the parameter names and types of a query string

2014-02-18 Thread François-xavier Panaget
Hello, Do you have an example of usage of OpenJPA JPQLParser to determine the names and types of the parameters in an arbitrary JPQL query string? Thank you and regards, Lara

Re: OpenJpa 2.2.0 - Literal is not truly literal when generating sql.

2014-02-18 Thread Rick Curtis
Craig - It looks like OPENJPA-2324[1] might be what you are looking for? Heath -- Any chance that we can get some documentation for this change? [1] https://issues.apache.org/jira/browse/OPENJPA-2324 Thanks, Rick On Tue, Feb 18, 2014 at 1:48 PM, Craig Taylor wrote: > It appears the the crit

OpenJpa 2.2.0 - Literal is not truly literal when generating sql.

2014-02-18 Thread Craig Taylor
It appears the the criteriaBuilder.literal() is not treated as literal consistently during generation of HQL / SQL. For criteria queries, the HQL (OpenJPAQuery.getQueryString()) is generated as what I would consider proper HQL in that parameters are :prefixed and literals are hard valued within t