I've successfully simulated the issue using the supplied test case on Hibernate 4.3.4 with Postgres 9.3 and H2 1.3.168. The error is still the same, parameter is not set to the query.