【发布时间】:2021-06-22 06:27:20
【问题描述】:
我在 Oracle DB 中有存储过程。它的输出参数是数字(“RETURN_VALUE”)和 SYS_REFCURSOR 类型的三个参数(“ONE”、“TWO”...)。我知道如何调用此过程并获取数字参数:
SimpleJdbcCall call = new SimpleJdbcCall(jdbcTemplate)
.withProcedureName("NAME")
.withReturnValue();
Map<String, Object> response = call.execute(new MapSqlParameterSource(...));
Integer responseCode = (Integer) response.get("RETURN_VALUE");
但是如何将 SYS_REFCURSOR 参数映射到一些 DesiredClassType 列表?
List<DesiredClassType> list = (List<DesiredClassType>) response.get("ONE");
【问题讨论】:
标签: java spring oracle sys-refcursor