If you want to call a function, you have to specify the query/procedure hint org.hibernate.callableFunction=true i.e. sp.setHint(AvailableHints.HINT_CALLABLE_FUNCTION, "true");