Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的项目中使用 Apache Delta Spike 的 Data 模块,但是,我在它的文档中找不到执行和从存储过程调用中获取结果的正确方法......
有人能帮我吗?
抱歉,有点晚了,但它应该像这样工作,例如,当您执行本机 SQL 调用时(我使用 DB2,并且从过程调用返回一个参数):
@Modifying @Query(value = "call YOURSCHEMANAME.SP_YOURPROCNAME(:outParam)", isNative = true) public abstract Integer yourMethodName(@QueryParam("outParam") Integer outParam);