This is allowed at 2 levels...
First, this can be controlled at a "global" level (via the new hibernate.proc.param_null_passing setting, see org.hibernate.cfg.AvailableSettings#PROCEDURE_NULL_PARAM_PASSING) when building the SessionFactory.
Additionally this can be adjusted per-parameter, per-execution. In the native Hibernate API this is done through org.hibernate.procedure.ParameterRegistration#enablePassingNulls. The default for this per-parameter is defined by the "global" setting. In JPA, this is done via hints; in the initial implementation this is only supported through named queries.
I've this Exception when pass a null as an In Paramter to a storedprocedure:
I see this is this file
I've try to set a default value but not luck. I think that It can be remove the if and use
it has this null protection: