Skip to content

Commit

Permalink
更新日志
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 committed Apr 7, 2018
1 parent 3550292 commit a6a608c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wikis/en/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
## Changelog

### 5.1.3 - 2018-04-07

- `Page` `toString` method adds `super.toString()`. The final output form is `Page{Attribute}[Collection]`.
- New `defaultCount` parameter is used to control whether to perform count query in the default method without count query. By default, `true` will execute count query. This is a globally valid parameter, and it is a uniform behavior when multiple data sources are used.
- New `dialogAlias` parameter that allows you to configure aliases for custom implementations. it can be used to automatically obtain corresponding implementations based on JDBC URL. it allows you to overwrite existing implementations in this way. configuration examples are ( Separate multiple configurations with semicolons ):
```xml
<property name="dialectAlias" value="oracle=com.github.pagehelper.dialect.helper.OracleDialect"/>
```
- The new `PageSerializable` class, a simplified version of the `PageInfo` class, is recommended to use or refer to this class when it does not require much information.

### 5.1.2 - 2017-09-18

- Solve the problem when using the `PageHelper.orderBy` method alone #110;
Expand Down
10 changes: 10 additions & 0 deletions wikis/zh/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
## 更新日志

### 5.1.3 - 2018-04-07

- `Page``toString` 方法增加 `super.toString()`。最终输出形式如 `Page{属性}[集合]`
- 增加 `defaultCount` 参数,用于控制默认不带 count 查询的方法中,是否执行 count 查询,默认 true 会执行 count 查询,这是一个全局生效的参数,多数据源时也是统一的行为。
- 增加 `dialectAlias` 参数,允许配置自定义实现的 别名,可以用于根据 JDBCURL 自动获取对应实现,允许通过此种方式覆盖已有的实现,配置示例如(多个时分号隔开):
```xml
<property name="dialectAlias" value="oracle=com.github.pagehelper.dialect.helper.OracleDialect"/>
```
- 增加 `PageSerializable`,简化版的 `PageInfo` 类,不需要那么多信息时,推荐使用或者参考这个类实现。

### 5.1.2 - 2017-09-18

- 解决单独使用 `PageHelper.orderBy` 方法时的问题 #110;
Expand Down

0 comments on commit a6a608c

Please sign in to comment.