I think in the beginning you meant to say in
JDBC.
Anyway, with stored procedures through Hibernate, there are two rules.
1. Only one out parameter and it must be a reference cursor, so no integers.
2. The out parameter must be the first parameter.
Say you are using Oracle, you can always use session.createSQLQuery("select my_proc_call(param1, param2) from dual" and get the integer that way.
Mark