当前位置:网站首页>记JPA使用自定义VO接收 JPQL查询结果
记JPA使用自定义VO接收 JPQL查询结果
2022-06-28 06:10:00 【压力也没多大啊】
//new 一个自定义的VO(括号里的参数需要实现对应的构造方法)
@Query(value = "select new EquipmentStatusVO(eq.eqtExtId,es.eqtStatus,model.eqtType) from EquipmentStatusEntity es join EquipmentJunctionRelEntity rel " +
//使用entity类去进行join操作
"on str(es.eqtId) = rel.eqtId join Equipment eq on es.eqtId = eq.id join EquipmentModelEntity model on eq.eqtTypeId = model.modelId where rel.junctionId =:junctionId ")
List<EquipmentStatusVO> getEquipmentStatusWithJunction(@Param("junctionId") String junctionId);
边栏推荐
- 【无标题】
- Introduction to openscap
- Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]]
- [MySQL] all query tables contain 20million data -- how to optimize SQL
- Official answers to the "network security" competition questions of the 2022 national vocational college skills competition
- Yolact++ Pytorch环境
- SQL and list de duplication
- mysql常用函数
- High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
- 阿里云短信服务(完整指南),短信发送功能实现。
猜你喜欢

借助nz-pagination中的let-total解析ng-template

Apple MDM bypass jailfree bypass MDM configuration lock free

【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images

Alert pop-up processing in Web Automation

Socket. Io long Connection Push, version Control, Real - Time Active user volume Statistics

Development trend of mobile advertising: Leveraging stock and fine marketing

pytorch详解
![Taobao seo training video course [22 lectures]](/img/81/21e844542b35010760d061abe905e9.jpg)
Taobao seo training video course [22 lectures]

Oracle fundamentals summary

容量调度绝对值配置队列使用与避坑
随机推荐
不会还有人只会用forEach遍历数组吧?
AutoCAD C# 多段线小锐角检测
pytorch详解
easyui 重置多条件查询
PKG package node project (express)
Jenkins continuous integration 1
预训练模型参数不匹配
Scripting and programming languages
idea创建类时自动添加注释
Configure redis from 0
Apple MDM Bypass 免越狱绕过MDM配置锁 免费
socke.io長連接實現推送、版本控制、實時活躍用戶量統計
Configure multiple database connections using the SSM framework
@Autowired注解为空的原因
使用pytorch和tensorflow计算分类模型的混淆矩阵
AutoCAD C # Polyline Small Sharp angle Detection
Ape pink ape power - Developer activity attack!
Common basic functions of Oracle
5g network overall architecture
Is it safe to open a stock account? How to open a stock account?