I am using Spring\'s JdbcTemplate and StoredProcedure classes. I am having trouble getting the stored procedure class to work for me.
I have a stored procedure on a
The problem is simple if you don't pass a RowMapper while declaring the outparam which is a CURSOR. Spring is going to return {}
I.e empty cursor.
declareParameter(new SqlOutParameter("output", OracleTypes.CURSOR)); - returns empty {}
declareParameter(new SqlOutParameter("output", OracleTypes.CURSOR, new ApplicationMapper()); - returns result
Where ApplicationMapper is my custom mapper which implements RowMapper.