I use hibernate and oracle. Let's imagine the following stored procedure:
Code:
create or replace FUNCTION xyz_update (
name IN varchar2,
id IN NUMBER
) ...
And let's imagine the following mapping:
Code:
<sql-update callable="true">{ ? = call xyz_update(?, ?)}</sql-update>
Now if I do that I always get the orcale error that I'm missing paramter 3 for this function. This is wrong, because I only have 2 parameters.
But if I do:
Code:
<sql-update callable="true">{ ? = call xyz_update(?)}</sql-update>
Oracle tells me that I'm calling the function with the wrong number or arguments.
So it looks to me that:
Hibernate counts all the '?' signs for determining the amount of paramters. It also counts the '? = ..' as paramter, too.
Am I right?