I want to call a procedure using JPA with parameter SYS_REFCURSOR as OUT . It is very simple using simple JDBC, but I'm not sure if this is possible in JPA.
My procedure is similar to the following:
CREATE OR REPLACE FUNCTION FN_GET_COINS RETURN SYS_REFCURSOR IS vCursor SYS_REFCURSOR; BEGIN OPEN vCursor FOR SELECT ... RETURN vCursor; CLOSE vCursor; EXCEPTION ... END FN_GET_COINS;
source share