Annotation Interface ResultType

@Documented @Retention(RUNTIME) @Target(METHOD) public @interface ResultType
This annotation can be used when a @Select method is using a ResultHandler. Those methods must have void return type, so this annotation can be used to tell MyBatis what kind of object it should build for each row.

How to use:

 public interface UserMapper {
   @Select("SELECT id, name FROM users WHERE name LIKE #{name} || '%' ORDER BY id")
   void collectByStartingWithName(String name, ResultHandler<User> handler);
Jeff Butler