I am trying to call a legacy stored function in an Oracle9i DB from Java using Hibernate. The function is declared like this:
create or replace FUNCTION Tran
callable = true is for calling stored procedures with {? = call ...()} syntax. Oracle's select ... from dual syntax is a normal query, so you don't need callable = true:
callable = true
{? = call ...()}
select ... from dual
select Transferlocation_Fix(:mnemonic) as retVal from dual