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

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -