3.0.4 release
zhou-hao
released this
19 Dec 06:18
·
937 commits
to master
since this release
- 升级ezorm版本3.0.2
- 优化动态查询API
现在支持通过方法引用来描述字段了.比如:
User user = ....;
createQuery().where(user::getName).list();
//静态方法引用
createQuery().where(User::getName,name).list();
以及便捷的条件嵌套功能:
public List<DataBean> queryCurrentUserData(Authentication currentAuth,QueryParamEntity param){
//当前登录用户ID
String currentUserId = currentAuth.getUser().getId();
//将前端传来的参数转为嵌套后再追加参数.
//如: name = ? or age > ? 转为 ( name = ? or age > ? ) and userId = ?
return param.toNestQuery()
.and(DataBean.getUserId,currentUserId)
.execute(service::query);
}
- 修复not in 查询报错的bug
- 增加双重验证功能 #103
- 增加 BloomFilter