JPA+ORACLE: Can't pass boolean param to my stored procedure
问题 I can not pass boolean param to my stored procedure in Oracle. If I set value directly in the query text (mypackage.Test(?, false, ?, ?);) all work fine... jdbc-driver: ojdbc6.jar container: Tomcat 7.0.28 hibernate-core+hibernate-entitymanager: 4.1.6.Final oracle: Oracle Database 11g Release 11.2.0.2.0 - 64bit Production Here my realization: EntityManager em = defaultFactory.createEntityManager(); em.createNativeQuery("BEGIN mypackage.Test(?, ?, ?, ?); END;")// .setParameter(1, factId)//