我Address从DB调用中获取对象列表.
ArrayList<Address> addresses = new ArrayList<>();
Run Code Online (Sandbox Code Playgroud)
每个人Address都有一个int addressId属性.
我正在写一个更新查询,在IN条款中我发送这整个Address对象列表,我得到了ibatis TypeException.如何转换List<Address>为逗号分隔的字符串,可以发送更新查询?
我的更新查询看起来像:::
Update tablename set postcode = #{postCode} where id in #{addressID}.
Run Code Online (Sandbox Code Playgroud) java ×1