I'm having trouble with parameter substitution in Hibernate.
I'm using Hibernate 3.6.4-FINAL, Oracle Database 10g Express and the ojdbc14.jar driver.
When I execute this code:
I get the following exception. I have tried with setParameter("viewA", "empleados) and with positional parameter and none work. The query will succeed if I manually replace the select string and I don't use parameters.
From the log, it's like if Hibernate was trying to execute the query before the parameter substitution...