You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading spring boot from 1.3 to 1.4 and hibernate from 4 to 5, stored procedure working earlier, now returns "PLS-00306: wrong number of types of arguments in call to YYYY".
Code is exactly the same as in reference documentation (5.4. Stored procedures), (only difference beside procedure and parameters names is other type of parameters - String instead of Integer ).
Little debugging shows change in hibernate 5 to using named parameters instead of position indexed as in 4.
But Spring Data JPA for returning out parameter passes name "out" static final String SYNTHETIC_OUTPUT_PARAMETER_NAME = "out"
which differs from real procedure out parameter name, and as I guess is cause of error...