我在Oracle上创建了一个过程,该过程向我返回了许多OUT参数。很好。
unsigned char
但是当我尝试在Java上获取此代码时,我这样做:
create or replace PROCEDURE "SP_PLO_AC_SITE_FREQ_PROJ"
(
IN_SITE_ATENDIDO IN VARCHAR2,
IN_FREQUENCIA IN VARCHAR2,
IN_PROJETO IN VARCHAR2,
ID_ORDEM_COMPLEXA_OUT OUT NUMBER,
ELEMENTO_ID_OUT OUT VARCHAR2,
ENDERECO_ID_OUT OUT VARCHAR2,
TECNOLOGIA_ACESSO_OUT OUT VARCHAR2,
STATUS_OUT OUT VARCHAR2,
CODIGO_ORCAMENTARIO_OUT OUT VARCHAR2,
CLASIFICACAO_TIPO_PROCESSO_OUT OUT VARCHAR2,
TIPO_ORDEM_COMPLEXA_OUT OUT VARCHAR2,
ATIVACAO_REAL_OUT OUT DATE
)
但是当我打电话给我时,我遇到了这个错误:
@NamedStoredProcedureQuery(name = "acessoSiteFrequenciaProjeto", procedureName = "SP_PLO_AC_SITE_FREQ_PROJ", parameters = {
@StoredProcedureParameter(mode = ParameterMode.IN, name = "IN_SITE_ATENDIDO", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.IN, name = "IN_FREQUENCIA", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.IN, name = "IN_PROJETO", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "ID_ORDEM_COMPLEXA_OUT", type = Integer.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "ELEMENTO_ID_OUT", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "ENDERECO_ID_OUT", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "TECNOLOGIA_ACESSO_OUT", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "STATUS_OUT", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "CODIGO_ORCAMENTARIO_OUT", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "CLASIFICACAO_TIPO_PROCESSO_OUT", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "TIPO_ORDEM_COMPLEXA_OUT", type = String.class),
@StoredProcedureParameter(mode = ParameterMode.INOUT, name = "ATIVACAO_REAL_OUT", type = Date.class)
}),
我只是看了很多如何返回多个out参数,但一无所获。