我现在用JPA来调用Oracle的存储过程,该存储过程有两个参数,第一个为输入参数,第二个为输出参数(t_type)
输出的是一个结果集
type t_type is table of t_test%rowtype index by binary_integer;
调用方法如下:
String test = "{call PKG_Test(300,?)}";

Query query = getEntityManager().createNativeQuery(test
, TForecastEdgestatus.class);
return query.getResultList();
这样调用程序不能正确执行,请问大家JPA怎么来调用一个存储过程并返回一个结果集