79291880

Date: 2024-12-18 16:54:51
Score: 2
Natty:
Report link

Credit to @ave in the comments above.

In my case, I had to explicitly set up the index and item bits of the foreach

<foreach collection="accountUsers" index="index" item="item" separator=",">
(#{index, javaType=com.my.company.dataid.account.AccountNumber},
        #{item.userId},
        #{item.role},

And then List<Pair<X,Y>>> works.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @ave
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Patrick Proctor