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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -