Skip to content

Commit

Permalink
增加对mybatis-spring 1.2.4版本的支持,兼容之前的版本
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 committed Feb 19, 2016
1 parent 3fb4ab1 commit 4a529c5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Country代码:
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>3.3.5</version>
<version>3.3.6</version>
</dependency>
```

Expand All @@ -108,7 +108,11 @@ http://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/

##[更新日志](http://git.oschina.net/free/Mapper/blob/master/wiki/Changelog.md)

##最新版本3.3.5 - 2016-02-16
##最新版本3.3.6 - 2016-02-20

* 增加对mybatis-spring 1.2.4版本的支持,兼容之前的版本

###3.3.5 - 2016-02-16

* `Example`增加对动态表名支持,通过`setTableName`设置表名
* 在example相关的两个`update`方法中,参数为实体类和`Example`,这个方法只能通过`Example`来设置动态表名,不支持通过实体设置动态表名
Expand Down
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>3.3.5</version>
<version>3.3.6</version>
<packaging>jar</packaging>

<name>mapper</name>
Expand Down Expand Up @@ -67,13 +67,6 @@
<artifactId>persistence-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.2.1</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
Expand All @@ -93,7 +86,14 @@
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.2.8</version>
<version>3.3.1</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.2.4</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/tk/mybatis/spring/mapper/MapperFactoryBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ public class MapperFactoryBean<T> extends org.mybatis.spring.mapper.MapperFactor

private MapperHelper mapperHelper;

public MapperFactoryBean() {
}

public MapperFactoryBean(Class<T> mapperInterface) {
super(mapperInterface);
}

/**
* {@inheritDoc}
*/
Expand Down
4 changes: 4 additions & 0 deletions wiki/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#更新日志

##3.3.6 - 2016-02-20

* 增加对mybatis-spring 1.2.4版本的支持,兼容之前的版本

##3.3.5 - 2016-02-16

* `Example`增加对动态表名支持,通过`setTableName`设置表名
Expand Down

0 comments on commit 4a529c5

Please sign in to comment.