File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
13
13
##通用Mapper2.x
14
14
15
- [ Mapper2.x版本 ] ( http://git.oschina.net/free/Mapper/tree/Mapper2.x ) 是2.x版本,目前最新的3.x版本改动很大,如果正在使用2.x版本,可以去看2.x版本的文档。
15
+ 目前最新的3.x版本改动很大,如果正在使用2.x版本,可以去看2.x版本的文档: [ Mapper2.x版本首页 ] ( http://git.oschina.net/free/Mapper/tree/Mapper2.x )
16
16
17
17
##通用Mapper3
18
18
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ Mapper3接口有两种形式,一种是提供了一个方法的接口。还有
74
74
接口:` BaseMapper ` <br >
75
75
方法:继承了base组合接口中的4个组合接口,包含完整的CRUD方法<br ><br >
76
76
77
- ### Example方法
77
+ ##Example方法
78
78
79
79
接口:` SelectByExampleMapper ` <br >
80
80
方法:` List<T> selectByExample(Object example); ` <br >
@@ -101,7 +101,7 @@ Mapper3接口有两种形式,一种是提供了一个方法的接口。还有
101
101
接口:` ExampleMapper ` <br >
102
102
方法:包含上面Example中的5个方法<br ><br >
103
103
104
- ### RowBounds
104
+ ##RowBounds
105
105
106
106
默认为<b >内存分页</b >,可以配合[ PageHelper] ( http://git.oschina.net/free/Mybatis_PageHelper ) 实现物理分页
107
107
@@ -118,7 +118,7 @@ Mapper3接口有两种形式,一种是提供了一个方法的接口。还有
118
118
接口:` RowBoundsMapper ` <br >
119
119
方法:包含上面RowBounds中的2个方法<br ><br >
120
120
121
- ### special特殊接口
121
+ ##special特殊接口
122
122
123
123
这些接口针对部分数据库设计,不是所有数据库都支持
124
124
@@ -130,7 +130,7 @@ Mapper3接口有两种形式,一种是提供了一个方法的接口。还有
130
130
方法:` int InsertUseGeneratedKeysMapper(T record); ` <br >
131
131
说明:插入数据,限制为实体包含` id ` 属性并且必须为自增列,实体配置的主键策略无效<br ><br >
132
132
133
- ### MySQL专用
133
+ ##MySQL专用
134
134
135
135
接口:` MySqlMapper ` <br >
136
136
继承方法:` int insertList(List<T> recordList); ` <br >
You can’t perform that action at this time.
0 commit comments