File tree Expand file tree Collapse file tree 3 files changed +10
-20
lines changed Expand file tree Collapse file tree 3 files changed +10
-20
lines changed Original file line number Diff line number Diff line change @@ -86,33 +86,21 @@ Country代码:
86
86
87
87
##Maven坐标以及下载地址
88
88
89
- ###最新版本2.2.0
89
+ ###最新版本2.3.0 - 2015-04-05
90
90
91
- * 新增 ` SqlMapper ` ,可以使用MyBatis直接执行sql, [ 详细文档 ] ( http://git.oschina.net/free/Mapper/blob/master/wiki/UseSqlMapper.md )
91
+ * Mapper接口和EntityMapper都增加了 ` selectOne ` 方法,该查询返回值最多只能有一个,存在多个时抛出异常
92
92
93
- ## # 2 .1.0
93
+ * Mapper接口和EntityMapper中,返回List的查询方法都支持JPA的 ` @Orderby ` 注解。其中 ` Example ` 查询中的 ` orderby ` 会覆盖注解的 ` @Orderby ` 设置。
94
94
95
- * 通用Mapper接口增加Example查询方法,包括以下方法:
96
-
97
- int selectCountByExample(Object example);
98
-
99
- int deleteByExample(Object example);
100
-
101
- List<T > selectByExample(Object example);
102
-
103
- int updateByExampleSelective(@Param ("record") T record, @Param ("example") Object example);
104
-
105
- int updateByExample(@Param ("record") T record, @Param ("example") Object example);
106
-
107
- * 通用` Example ` 增加了一个` exists ` 的参数,当` true ` 的时候如果使用的字段不存在会抛出异常,` false ` 时不抛出异常,但是不使用该字段的条件。
95
+ * 通过实体类获取表名的时候,不对表名进行强制的大小写转换。如果数据库大小写敏感,请通过` @Table ` 注解和数据库保持一致。
108
96
109
97
如果你使用Maven,只需要添加如下依赖:
110
98
111
99
``` xml
112
100
<dependency >
113
101
<groupId >com.github.abel533</groupId >
114
102
<artifactId >mapper</artifactId >
115
- <version >2.2 .0</version >
103
+ <version >2.3 .0</version >
116
104
</dependency >
117
105
```
118
106
@@ -156,8 +144,6 @@ http://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/
156
144
157
145
作者博客:http://blog.csdn.net/isea533
158
146
159
- 作者QQ: 120807756
160
-
161
147
作者邮箱: abel533@gmail.com
162
148
163
149
Mybatis工具群: 211286137 (Mybatis相关工具插件等等)
Original file line number Diff line number Diff line change 4
4
5
5
<groupId >com.github.abel533</groupId >
6
6
<artifactId >mapper</artifactId >
7
- <version >2.2 .0</version >
7
+ <version >2.3 .0</version >
8
8
<packaging >jar</packaging >
9
9
10
10
<name >mapper</name >
Original file line number Diff line number Diff line change 1
1
#更新日志
2
2
3
+ ##2 .2.0 - 2015-03-11
4
+
5
+ * 新增` SqlMapper ` ,可以使用MyBatis直接执行sql,[ 详细文档] ( http://git.oschina.net/free/Mapper/blob/master/wiki/UseSqlMapper.md )
6
+
3
7
##v2.1.0 - 2015-03-07
4
8
5
9
* 通用Mapper接口增加Example查询方法,包括以下方法:
You can’t perform that action at this time.
0 commit comments