Skip to content

Commit 2c93f1e

Browse files
committed
修改版本为3.2.0
1 parent 3a2fb28 commit 2c93f1e

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ http://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/
108108

109109
##Maven坐标以及下载地址
110110

111-
###最新版本3.2.0 - 2015-08-29
111+
###最新版本3.2.0 - 2015-09-02
112112

113113
* 移除`MapperInterceptor`拦截器,以后不能在通过拦截器配置
114114
* 增加mybatis-spring特殊支持,主要是根据mybatis-spring项目增加了下面两个类:

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>tk.mybatis</groupId>
66
<artifactId>mapper</artifactId>
7-
<version>3.2.0-SNAPSHOT</version>
7+
<version>3.2.0</version>
88
<packaging>jar</packaging>
99

1010
<name>mapper</name>

wiki/Changelog.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
#更新日志
22

3+
##3.2.0 - 2015-09-02
4+
5+
* 移除`MapperInterceptor`拦截器,以后不能在通过拦截器配置
6+
* 增加mybatis-spring特殊支持,主要是根据mybatis-spring项目增加了下面两个类:
7+
- `tk.mybatis.spring.mapper.MapperScannerConfigurer`
8+
- `tk.mybatis.spring.mapper.MapperFactoryBean`
9+
* 这两个类和MyBatis提供的区别是增加了MapperHelper属性,通过在`MapperScannerConfigurer`中使用`properties`属性注入配置
10+
* 这两个类,在全名上和MyBatis的区别是`org.mybatis.xxx`改为了`tk.mybatis.xxx`,名字相近,更方便修改配置
11+
* 和Spring集成方法:
12+
13+
```xml
14+
<bean class="tk.mybatis.spring.mapper.MapperScannerConfigurer">
15+
<property name="basePackage" value="com.isea533.mybatis.mapper"/>
16+
<property name="properties">
17+
<value>
18+
mappers=tk.mybatis.mapper.common.Mapper
19+
</value>
20+
</property>
21+
</bean>
22+
```
23+
24+
* 这种配置方式是不是简单的不能再简单了?
25+
* 增加`style`属性配置,用来配置对象名/字段和表名/字段之间的转换方式,可选值:
26+
- `normal`:使用实体类名/属性名作为表名/字段名
27+
- `camelhump`:<b>这是默认值</b>,驼峰转换为下划线形式
28+
- `uppercase`:转换为大写
29+
- `lowercase`:转换为小写
30+
* 增加实体注解`@NameStyle`,该注解优先于全局配置`style`
31+
* 解决`example.selectProperties`映射错误的bug[#48](http://git.oschina.net/free/Mapper/issues/48)
32+
333
##3.1.3 - 2015-08-25
434

535
* 去掉了3.1.3-SNAPSHOT版本中的`MapperOnceInterceptor`拦截器,下个版本会完善`MapperHelper`的配置方式

0 commit comments

Comments
 (0)