Set array of parameters to hibernate query language

前端 未结 1 1729
刺人心
刺人心 2021-01-02 06:42

Currently the query takes in a single reportID to return the results. Now if I want to pass multiple reportIDs and return the o/p in just 1 call to the DB, how do I do that?

相关标签:
1条回答
  • 2021-01-02 06:53

    try this one

     query.setParameterList("reportID", new Object[]{"aaa","bbb"});
    
    0 讨论(0)
提交回复
热议问题