1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.hashmaptypehandler;
17
18 import java.util.HashMap;
19
20 import org.apache.ibatis.annotations.Param;
21 import org.apache.ibatis.annotations.Select;
22
23 public interface Mapper {
24
25 @Select("select * from users where id = #{id} and name = #{name}")
26 User getUser(@Param("id") Integer id, @Param("name") String name);
27
28 User getUserXml(@Param("id") Integer id, @Param("name") String name);
29
30 @Select("select * from users where name = #{map}")
31 User getUserWithTypeHandler(HashMap<String, String> map);
32
33 User getUserWithTypeHandlerXml(HashMap<String, String> map);
34
35 }