Spring Data JPA NamedStoredProcedureQuery Multiple Out Parameters

前端 未结 4 1576
青春惊慌失措
青春惊慌失措 2021-02-01 04:04

I have a simple stored procedure I\'m using to test out Spring Data JPA Stored Procedure feature.

create or replace procedure plus1inout (arg in int,res1 out int         


        
4条回答
  •  失恋的感觉
    2021-02-01 04:31

    Spring Data JPA support multiple output parameters. Return type of Method must be a Map. I spent a lot of time on this. Below link exactly gives example of that, Search for User.plus1IO2.

    User.java

    UserRepository.java

提交回复
热议问题