File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ http://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/
108
108
109
109
##Maven坐标以及下载地址
110
110
111
- ###最新版本3.2.0 - 2015-08-29
111
+ ###最新版本3.2.0 - 2015-09-02
112
112
113
113
* 移除` MapperInterceptor ` 拦截器,以后不能在通过拦截器配置
114
114
* 增加mybatis-spring特殊支持,主要是根据mybatis-spring项目增加了下面两个类:
Original file line number Diff line number Diff line change 4
4
5
5
<groupId >tk.mybatis</groupId >
6
6
<artifactId >mapper</artifactId >
7
- <version >3.2.0-SNAPSHOT </version >
7
+ <version >3.2.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
+ ##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
+
3
33
##3 .1.3 - 2015-08-25
4
34
5
35
* 去掉了3.1.3-SNAPSHOT版本中的` MapperOnceInterceptor ` 拦截器,下个版本会完善` MapperHelper ` 的配置方式
You can’t perform that action at this time.
0 commit comments