当前位置:网站首页>记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);
边栏推荐
- Mosaic data enhanced mosaic
- D3D11_ Chili_ Tutorial (3): design a bindable/drawable system
- Openharmony gnawing paper growth plan -- json-rpc
- AutoCAD C# 多段線小銳角檢測
- What is the e-commerce conversion rate so abstract?
- Jenkins continues integration 2
- Where is the era bonus for developers?
- At first glance, I can see several methods used by motionlayout
- 链表(一)——移除链表元素
- 【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images
猜你喜欢
![RL practice (0) - and the platform xinchou winter season [rule based policy]](/img/dc/10d615c64123475fea180e035095ff.png)
RL practice (0) - and the platform xinchou winter season [rule based policy]

Capacity scheduling absolute value configuration queue usage and pit avoidance

Uni app wechat applet sharing function

JDBC学习(一)——实现简单的CRUD操作

深度学习19种损失函数

19 fonctions de perte d'apprentissage profond

How the third-party libraries in cocoapod reference local header files

death_satan/hyperf-validate

AutoCAD C# 多段線小銳角檢測

Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance
随机推荐
Socket. Io long Connection Push, version Control, Real - Time Active user volume Statistics
JDBC学习(一)——实现简单的CRUD操作
Iframe switching in Web Automation
Differences between overloads, rewrites, abstract classes and interfaces
death_satan/hyperf-validate
使用SQL select count distinct查询语句统计数据库中某个字段的唯一值总数量
5g network overall architecture
windows上安装redis并永久修改密码,及ssm框架集成redis
MR-WordCount
How to add live chat in your Shopify store?
lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性
socke. IO long connection enables push, version control, and real-time active user statistics
JQ picture amplifier
YYGH-6-微信登录
Differences between basic types and packaging classes
ES9023音频解码芯片的工作原理
移动广告发展动向:撬动存量,精细营销
Independent station sellers are using the five e-mail marketing skills, do you know?
pytorch详解
Jenkins continues integration 2