You are currently viewing How would i pass a collection of pairs using SpEL ?

How would i pass a collection of pairs using SpEL ?

I have the following query

@Query(“SELECT myObj FROM MyObjects myObj ” + “WHERE (myObj.foo, myObj.bar) IN #myPairs”) fun myQuery( @Param(“myPairs”)myPairs: List<Pair<String, String>> ): List<MyObj>

how can i modify to project my list of pairs in the query ? I remember trying with projection collection but i lost my progress

submitted by /u/GoddamHotPotatoes
[link] [comments]