My app is calling Oracle DB using Spring data JPA, and one of the operations is calling a Stored Procedure.
When it come to integration testing, I'm using H2 DB, but I found difficulties to call the SP.
Below is the way I'm calling the SP
final StoredProcedureQuery query = entityManager
.createStoredProcedureQuery("MY_SP_HERE")
.registerStoredProcedureParameter("PARAM_1", String.class, ParameterMode.IN)
.setParameter("PARAM_1", "VALUE_PARAM_1")
.registerStoredProcedureParameter("V_CURSOR_OUT", CustomClass.class,
ParameterMode.REF_CURSOR);
query.execute();
final List<Object[]> obj = query.getResultList();
Is it possible to call the SP from H2 ?