Hibernate Native Query problem with named parameters

Posted by dime on Stack Overflow See other posts from Stack Overflow or by dime
Published on 2010-05-08T17:24:39Z Indexed on 2010/05/08 17:28 UTC
Read the original article Hit count: 186

Filed under:
|
|
|

I have a problem with Hibernate Native Query. I have one SELECT that selects array slice (PostgreSQL database).

The problem is that hibernate recognizes the following part: ":300" from "SELECT my_array[1:300]..." as named parameter and I get the following exception: Not all named parameters have been set.

I tried to escape the colon (:) with '\:' , '::' but with no success.

The Hibernate version is 3.2

© Stack Overflow or respective owner

Related posts about hibernate

Related posts about postgresql