CREATE OR REPLACE PROCEDURE procedure_name(batch query(ID int(11))RETURNS void .
using java how i can make call to this procedure.
Java code
StoredProcedureQuery spq = em.createStoredProcedureQuery(“sp_onhandrecon_get3pldata”);
List<MemSqlData> arraylist = new ArrayList<>();
//arraylist.add(memSqlDataList.get(0).getId());
spq.registerStoredProcedureParameter(1,memSqlDataList.getClass(), ParameterMode.IN);
spq.setParameter(1, memSqlDataList);
Exception
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.orm.jpa.JpaSystemException: Error calling CallableStatement.getMoreResults; nested exception is org.hibernate.exception.GenericJDBCException: Error calling CallableStatement.getMoreResults] with root cause
java.sql.SQLException: It is not valid to create a value of type 'query(ID
int(11) NULL
Any help will be appreciated