The bug is present in 4.2.7 and 4.2.13
We have an SQL query in JPQL:
select t from JavaClass t WHERE 1=1 AND ([a few parameters in this format arameter]) AND ()
The point is that the query is an string (typed one) and before createQuery is full, but the hibernate log is showing it without the last AND:
select t from JavaClass t WHERE 1=1 AND ([a few parameters in this format arameter])
So, why is cutting it?
Tomcat 7 servlet 3.0 + Postgresql + JPA 2.0 + hibernate 4.2.x
Hi , can you attach a test case that demonstrates what you're seeing?
I'm posting sensible info in the example queries, for this I'm restricting visibility of the comments to the Hibernate registered users.
, are you literally using the following?
If so, do the following instead:
Note the ":" chars missing from the front.
Everything is fixed in my part, a problem in a for because the variables, thanks for the attention Brett.
Really many thanks.