-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathUserMapper.java
More file actions
35 lines (23 loc) · 793 Bytes
/
UserMapper.java
File metadata and controls
35 lines (23 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package tk.mybatis.mapper.rawresultmap;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;
import java.util.List;
import java.util.Map;
/**
* @author liuzh
*/
public interface UserMapper extends BaseMapper<User> {
@Select("SELECT * FROM user")
List<User> selectRawAnnotation();
@Select("SELECT * FROM user")
@ResultMap("BaseResultMap")
List<User> selectRawAnnotationResultMap();
List<User> fetchRawResultType();
List<User> fetchDynamicSqlType(@Param("ids") List<Integer> ids);
List<User> fetchRawResultMap();
List<User> fetchDynamicResultMap();
Map<String, Object> getMapUser();
Integer selectCount2();
}