I am getting an error : Attempt to set a parameter name that does not occur in the SQL: i_reorg_id . It does not make sense to me as there is i_reorg_id in the SQL.
Procedure is:
create or replace PROCEDURE PRINTREORGID(i_reorg_id IN VARCHAR2, o_reorg_id OUT VARCHAR2)
AS BEGIN
SELECT reorg_id
INTO o_reorg_id
FROM reorg_automation_workflowinput
WHERE reorg_id = i_reorg_id;
END;
Entity is:
@Entity
@NamedStoredProcedureQueries({
@NamedStoredProcedureQuery(name = "fetchProcedure", procedureName = "PRINTREORGID", parameters = {
@StoredProcedureParameter(mode = ParameterMode.IN, type = String.class, name = "i_reorg_id"),
@StoredProcedureParameter(type = String.class, mode = ParameterMode.OUT, name = "o_reorg_id"),
})
})
And Repository is:
@Procedure(name = "fetchProcedure", procedureName="PRINTREORGID")
String reorgAutomationWorkFlow(@Param("i_reorg_id") String i_reorg_id);