For single output types my code is working fine but I couldn’t get how to execute Oracle Procedure which has multiple output parameters and what will be the Output i.e ResultSet, Number etc.
abcProcedure(param1 OUT NUMBER,param2 OUT NUMBER,param3 OUT NUMBER,param4 OUT NUMBER,param5 IN OUT NUMBER, param6 IN NUMBER,param7 IN NUMBER)
Hibernate Code:
session.doWork(new Work(){
public void execute(Connection connection) throws SQLException {
CallableStatement callableStatement=connection.prepareCall("{call abcProcedure(?,?,?,?,?,?,?)}");
callableStatement.registerOutParameter(registerOutParameter,types.Numeric);
.......
callableStatement.execute();
}
}
Does anyone know how to do that?
Finally I have Solved it myself. Here is the solution
In case of multiple resultsets
Thats it. 🙂