There is a procedure procedure test it works. But when I call it in Java, I get this exception:
aa ERROR kz.test.app.session.MaketSession: error java.sql.SQLException: ORA-06550: Строка 1, столбец 7: PLS-00306: wrong number or types of arguments in call to 'ED_DATA' ORA-06550: Строка 1, столбец 7: PL/SQL: Statement ignored Connection conn = em.unwrap(java.sql.Connection.class); CallableStatement callableStatement = conn.prepareCall("{call x_h_p.ed_data(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )}"); callableStatement.setBigDecimal(1, id); callableStatement.setString(2, gson.getDep()); callableStatement.setString(3, gson.getPayName()); callableStatement.setDate(4, stringToSqlDate(gson.getDateAppoint())); callableStatement.setDate(5, stringToSqlDate(gson.getDateEnd())); callableStatement.setString(6, gson.getSurchargeId()); callableStatement.setInt(7, gson.getExcludingSmd()); callableStatement.setDate(8, stringToSqlDate(gson.getBeginSalary())); callableStatement.setDate(9, stringToSqlDate(gson.getEndSalary())); callableStatement.setInt(10, gson.getBestSmz()); callableStatement.setFloat(11, gson.getDisability()); callableStatement.setFloat(12, gson.getBaikonur()); callableStatement.registerOutParameter(13, OracleTypes.FLOAT); callableStatement.registerOutParameter(14, OracleTypes.VARCHAR); callableStatement.execute(); 14 parameters has a procedure, but I pass everything correctly, but I get an error on the arguments
{call ? := doMe(?, ?, ?, ?, ?)}{call ? := doMe(?, ?, ?, ?, ?)}. There was another optionselect doMe(?, ?, ?, ?, ?) from dual- Chubatiy