I want to call a procedure using JPA with SYS_REFCURSOR
like OUT
parameter. This is very easy using plain JDBC but I'm not sure that is possible in JPA.
My procedure is like 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;