当我存储过程的多个INOUT参数时,“类型不能为空”

时间:2019-12-11 21:02:45

标签: spring spring-boot jpa spring-data-jpa spring-data

我在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参数,但一无所获。

0 个答案:

没有答案