Is it possible to pass a null parameter to a stored procedure in Java JPA 2.1?

前端 未结 13 1723
孤城傲影
孤城傲影 2020-12-08 15:07

Using the new JPA 2.1 stored procedure call, is there any way to pass a null parameter?

Here is an example usage:

StoredProcedureQuery storedProcedur         


        
相关标签:
13条回答
  • 2020-12-08 15:59

    This below step resolves the issue :

    set globally a parameter in properties file in springboot hibernate environment as spring.jpa.properties.hibernate.proc.param_null_passing=true

    for allowing stored procedure to pass null in hibernate java code.

    0 讨论(0)
提交回复
热议问题