Hi I\'m new to myBatis.
I\'m using MyBatis and Spring with mybatis-spring.
How can I pass two different types of objects as parameters, and how can I use their p
Do not specify parameterType but use @Param annotation on parameters in mapper:
parameterType
@Param
@Mapper public interface MyMapper { void update(@Param("a") A a, @Param("b") B b); ... }
Then reference them in mapping:
UPDATE SOME WHERE x=#{a.x} AND y=#{b.y}