没有合适的资源?快使用搜索试试~ 我知道了~
mongo querydsl 官网文档


试读
67页
需积分: 0 1 下载量 124 浏览量
更新于2024-08-26
收藏 268KB PDF 举报
mongo querydsl 官网文档

Querydsl - Reference Documentation
Timo Westkämper
Samppa Saarela
Vesa Marttila
Lassi Immonen

Querydsl - Reference Documentation
by Timo Westkämper, Samppa Saarela, Vesa Marttila, and Lassi Immonen
3.2.2
Copyright © 2007-2013 Mysema Ltd.
Legal Notice
Copyright © 2007-2013 by Mysema Ltd. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it
subject to the terms and conditions of the Apache License, Version 2.0.

Querydsl
3.2.2
Querydsl - Reference
Documentation iii
Table of Contents
Preface ........................................................................................................................................... vi
1. Introduction ................................................................................................................................. 1
1.1. Background ...................................................................................................................... 1
1.2. Principles .......................................................................................................................... 1
2. Tutorials ...................................................................................................................................... 2
2.1. Querying JPA ................................................................................................................... 2
Maven integration ............................................................................................................ 2
Ant integration ................................................................................................................ 3
Using Querydsl JPA in Roo ............................................................................................. 4
Generating the model from hbm.xml files ......................................................................... 4
Using query types ............................................................................................................ 4
Querying ......................................................................................................................... 5
Using joins ...................................................................................................................... 6
General usage .................................................................................................................. 7
Ordering .......................................................................................................................... 7
Grouping ......................................................................................................................... 8
Delete clauses .................................................................................................................. 8
Update clauses ................................................................................................................. 8
Subqueries ....................................................................................................................... 9
Exposing the original query ............................................................................................. 9
Using Native SQL in JPA queries .................................................................................... 9
2.2. Querying JDO ................................................................................................................. 11
Maven integration .......................................................................................................... 11
Ant integration ............................................................................................................... 12
Using query types .......................................................................................................... 13
Querying with JDO ........................................................................................................ 14
General usage ................................................................................................................ 15
Ordering ........................................................................................................................ 15
Grouping ....................................................................................................................... 15
Delete clauses ................................................................................................................ 15
Subqueries ..................................................................................................................... 16
Using Native SQL ......................................................................................................... 16
2.3. Querying SQL ................................................................................................................ 18
Maven integration .......................................................................................................... 18
Code generation via Maven ............................................................................................ 18
Code generation via ANT .............................................................................................. 20
Creating the query types ................................................................................................ 20
Querying ....................................................................................................................... 21
General usage ................................................................................................................ 22
Joins .............................................................................................................................. 22

Querydsl
3.2.2
Querydsl - Reference
Documentation iv
Ordering ........................................................................................................................ 23
Grouping ....................................................................................................................... 23
Using Subqueries ........................................................................................................... 23
Query extension support ................................................................................................. 24
Window functions .......................................................................................................... 24
Using Data manipulation commands ............................................................................... 25
Insert ..................................................................................................................... 25
Update ................................................................................................................... 25
Delete .................................................................................................................... 26
Batch support in DML clauses ....................................................................................... 26
Bean class generation ..................................................................................................... 27
Custom types ................................................................................................................. 28
2.4. Querying Lucene ............................................................................................................. 28
Maven integration .......................................................................................................... 28
Creating the query types ................................................................................................ 29
Querying ....................................................................................................................... 29
General usage ................................................................................................................ 30
Ordering ........................................................................................................................ 30
Limit ............................................................................................................................. 31
Offset ............................................................................................................................ 31
Fuzzy searches ............................................................................................................... 31
Applying Lucene filters to queries .................................................................................. 31
2.5. Querying Hibernate Search .............................................................................................. 32
Creating the Querydsl query types .................................................................................. 32
Querying ....................................................................................................................... 32
General usage ................................................................................................................ 32
2.6. Querying Mongodb ......................................................................................................... 32
Maven integration .......................................................................................................... 32
Querying ....................................................................................................................... 33
General usage ................................................................................................................ 34
Ordering ........................................................................................................................ 34
Limit ............................................................................................................................. 34
Offset ............................................................................................................................ 34
Geospatial queries .......................................................................................................... 35
Select only relevant fields .............................................................................................. 35
2.7. Querying Collections ....................................................................................................... 35
Usage without generated query types .............................................................................. 35
Usage with generated query types ................................................................................... 36
Maven integration .......................................................................................................... 36
Ant integration ............................................................................................................... 37
Hamcrest matchers ......................................................................................................... 38
2.8. Querying in Scala ........................................................................................................... 38

Querydsl
3.2.2
Querydsl - Reference
Documentation v
DSL expressions for Scala ............................................................................................. 39
Improved projections ..................................................................................................... 39
Querying with SQL ....................................................................................................... 40
Compact queries .................................................................................................... 41
Code generation ..................................................................................................... 41
Querying with other backends ........................................................................................ 42
3. General usage ............................................................................................................................ 44
3.1. Creating queries .............................................................................................................. 44
Complex predicates ........................................................................................................ 44
Dynamic expressions ..................................................................................................... 44
Dynamic paths ............................................................................................................... 45
Case expressions ............................................................................................................ 46
Casting expressions ........................................................................................................ 46
3.2. Result handling ............................................................................................................... 47
Returning multiple columns ............................................................................................ 47
Bean population ............................................................................................................. 47
Constructor usage .......................................................................................................... 48
Result aggregation ......................................................................................................... 49
3.3. Code generation .............................................................................................................. 49
Path initialization ........................................................................................................... 50
Customization ................................................................................................................ 50
Custom type mappings ................................................................................................... 52
Delegate methods ........................................................................................................... 53
Non-annotated types ...................................................................................................... 54
Classpath based code generation ..................................................................................... 55
Usage via Maven ................................................................................................... 56
Scala support ......................................................................................................... 57
3.4. Alias usage ..................................................................................................................... 58
4. Troubleshooting ......................................................................................................................... 60
4.1. Insufficient type arguments .............................................................................................. 60
4.2. Multithreaded initialization of Querydsl Q-types ............................................................... 60
4.3. JDK5 usage .................................................................................................................... 61
剩余66页未读,继续阅读
资源推荐
资源评论

2021-06-14 上传
2013-11-19 上传

105 浏览量

164 浏览量
201 浏览量
171 浏览量
192 浏览量
2018-07-24 上传
107 浏览量

106 浏览量
128 浏览量
107 浏览量
155 浏览量
143 浏览量
2018-12-30 上传
2021-07-16 上传

109 浏览量

2025-02-07 上传
资源评论


lxllzwj5201314
- 粉丝: 58
- 资源: 20
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 怎么将python代码截图.py
- 怎么截取python代码长图.py
- matlab实现距离多普勒算法RD机载雷达合成孔径成像研究-距离多普勒算法-机载雷达-SAR-matlab
- 中国大学生计算机设计大赛中南地区一等奖文件夹
- MATLAB图像分割技术:基于粒子群优化与模拟退火算法的混合策略研究与应用示例,MATLAB环境下基于粒子群优化与模拟退火算法的图像分割技术,MATLAB环境下利用粒子群优化算法和模拟 火算法进行图
- 《探索应用边界:遗传算法在微电网、综合能源、电动汽车及寻参场景的通用性》,基础智能算法的广泛应用:遗传算法在微电网、综合能源、电动汽车以及参数寻优等场景中的灵活应用,基础智能算法-遗传算法,可用于任何
- 光伏三相并网仿真研究:基于MPPT控制与LCL滤波的逆变系统模型及其仿真结果分析,光伏三相并网仿真研究:MPPT控制与LCL滤波下的高效功率输出及系统稳定性分析,光伏控制器,光伏三相并网仿真 带说明
- 基于Cadence 618的两级运算放大器电路版图设计(低频增益达87dB,GBW 30MHz,详尽原理图及仿真过程),基于Cadence 618的两级运算放大器电路版图设计,涵盖工艺细节、仿真及安装
- 2011-2020广东21市高技术制造业增加值占规模以上工业比重(%)
- pycharm安装教程.md
- pycharm安装教程.md
- pycharm安装教程.md
- pycharm安装教程.md
- 深度探究:小电流接地系统单相接地故障选线装置设计及其优化策略,小电流接地系统单相接地故障选线装置的优化设计与应用,小电流接地系统单相接地故障选线装置设计 ,小电流;接地系统;单相接地故障;选线装置设计
- pycharm安装教程.md
- DeepSeek如何赋能职场应用?
安全验证
文档复制为VIP权益,开通VIP直接复制
