How to specify IN param type with annotation-configured MyBatis
问题 It seems I need to explicitly tell MyBatis what db-type to use for java.util.Date IN parameters if I want to able to pass null values. But I can't find a way of doing that. I tried different variations of following with no luck: @Select("<script>SELECT ... WHERE ... " + "<if test='#{dateFrom,jdbcType=TIMESTAMP} != null'>" + " AND date > #{dateFrom,jdbcType=TIMESTAMP}" + "</if></script>") List<MyType> getRecords(@Param("dateFrom") dateFrom) How does one specify a parameter type when using