MyBatis full annotation config to retrieve stored procedure result in OUT parameter?
问题 We have an Oracle stored procedure that returns its results in a SYS_REFCURSOR type OUT parameter. We would like to call this through a MyBatis mapper, the relevant part of the query string in the @Select annotation looks as follows @Select(value="call " + SCHEMA_NAME + "." + STORED_PROCEDURE_NAME + "(" + ... "#{" + P_RECORDSET_FIELD + ",javaType=java.sql.ResultSet,jdbcType=CURSOR,mode=OUT,resultMap=ownNameSpace.ownResultMap}," + ... where the resultMap property refers to the following XML