当前位置:网站首页>记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);
边栏推荐
- Yygh-6-wechat login
- 使用pytorch和tensorflow计算分类模型的混淆矩阵
- pytorch详解
- @Autowired注解为空的原因
- Scripting and programming languages
- Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]]
- 自定义 cube-ui 弹出框dialog支持多个且多种类型的input框
- Alert pop-up processing in Web Automation
- Using pytorch and tensorflow to calculate the confusion matrix of classification model
- [staff] arpeggio mark
猜你喜欢

Unity packaging webgl uses IIS to solve the error

Drop down box for implementation

Drop down list processing in Web Automation

The custom cube UI pop-up dialog supports multiple and multiple types of input boxes

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

Capacity scheduling absolute value configuration queue usage and pit avoidance

Sharing tips for efficient scripting

Iframe switching in Web Automation

Linux Mysql 实现root用户不用密码登录

报错--解决core-js/modules/es.error.cause.js报错
随机推荐
Parsing ng template with let total in NZ Pagination
How to add live chat in your Shopify store?
What is webrtc?
Openharmony gnawing paper growth plan -- json-rpc
重载,重写的区别,抽象类,接口的区别
使用SSM框架,配置多个数据库连接
Pre training model parameter mismatch
Object对象转 List集合
马赛克数据增强 mosaic
AutoCAD C # Polyline Small Sharp angle Detection
OpenGL API learning (2008) client server client server
链表(二)——设计链表
Small ball playing
Ethereum Classic的难度计算|猿创征文
简单手写debounce函数
Paper recommendation: efficientnetv2 - get smaller models and faster training speed through NAS, scaling and fused mbconv
Caused by: com. fasterxml. jackson. databind. Exc.invalidformatexception: exception resolution
Slow content advertising: the long-term principle of brand growth
全球国家(和地区)信息JSON数据
Is it safe to open a stock account? How to open a stock account?