使用queryDsl时需注意hibernate的版本问题,具体问题TODO…
1 | // 自定义Q前缀 |
1 | // 比如时间的比较 |
1 | // 分页查询 |
1 | // 分页处理 |
1 | // querydsl 子查询 |
1 | public Page<DIssue> issues(String userid, Pageable pageable, Predicate... predicates) { |
1 | // querydsl 动态查询 |
domain->dto
还有个Transformers这个没有尝试过,com.querydsl.core.types.ConstructorExpression<T>源码很贴心最上面还给了栗子
1 |
|
参考文献
https://www.programcreek.com/java-api-examples/index.php?api=com.mysema.query.BooleanBuilder