java - Hibernate + Db2 + StoredProcedure call, pass NULL value -
is possible pass null value in stored procedure call using hibernate , javax.persistence?
i'm trying in way:
storedprocedurequery storedprocedure = em.createstoredprocedurequery("my_procedure_name"); storedprocedure.registerstoredprocedureparameter("p_lease_null_me", integer.class, parametermode.inout); storedprocedure.setparameter("p_lease_null_me", null); storedprocedure.execute();
but db2 tells me: "missing mandatory parameter".
any ideas?
thanmks in advance
Comments
Post a Comment