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

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

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -