EntityManager 调用oracle存储过程出错问题,高手救救命!
调用存储过程的方法的方法是 ,数据是oracle 11g
Query query = em.createNativeQuery("{call P_TEST()}");//注:P_TEST()是一个简单的存储过程已经测试过没问题
调用后生成的sql是
select
*
from
( {call P_TEST()} )
where
rownum <= ?
报错
18:30:55,453 WARN [JDBCExceptionReporter] SQL Error: 907, SQLState: 42000
18:30:55,453 ERROR [JDBCExceptionReporter] ORA-00907: 缺失右括号