doc: update docs, close #I7VTD9

This commit is contained in:
开源海哥 2023-08-29 10:58:03 +08:00
parent d04ba5c0e5
commit fabc7e5955
2 changed files with 17 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# MyBatis-Flex ChangeLog # MyBatis-Flex ChangeLog
查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者) 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。
## v1.6.1 20230827: ## v1.6.1 20230827:
- 新增:添加 QueryWrapper.create(entity,SqlOperators) 支持通过 Entity 转换为 QueryWrapper - 新增:添加 QueryWrapper.create(entity,SqlOperators) 支持通过 Entity 转换为 QueryWrapper

View File

@ -6,7 +6,22 @@
<!--@include:./parts/base-mapper-query-methods.md--> <!--@include:./parts/base-mapper-query-methods.md-->
**select..As 使用注意事项:**
假设项目中有 `User.java` 的 Entity 类以及 `UserVo.java` 两个类。而 `User.java` 的代码如下
```java
public class User {
@Column(typeHandler=xxxHandler.class)
private String attr1;
//getter setter
}
```
`User.java``attr1` 属性配置了 `typeHandler`,当我们通过 `userMapper.select...As(UserVo.class)` 查询得到 `UserVo` 的时候,
也同样需要在 `UserVo``attr1` 属性中也配置上 `@Column(typeHandler=xxxHandler.class)`,两者才能得到相同的结果。
## 游标查询 ## 游标查询