当前位置:网站首页>The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"
The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"
2022-07-03 05:18:00 【YTIANYE】
Error message
IDEA Tips :
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order orderpo0_ where orderpo0_.id is not null'
visit API Return results :
{
"status": 500,
"error": "Internal Server Error",
"message": "could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet",
}
resolvent :
Most of the query solutions are after the database table is modified , And Java The class name of does not correspond , Hump naming is changed to underline in the database table , But my field naming is correct .
@Data
@Entity
@Table(name = "order")
public class OrderPO {
@Id
@GenericGenerator(name = "uuid2", strategy = "org.hibernate.id.UUIDGenerator")
@GeneratedValue(generator = "uuid2")
String id;
String customerId;
String customerName;
String packageId;
String packageName;
String modules;
String securityGroupRuleId;
}
Later, it was found that the table name of the database contained keywords , My table is named order, Change it to order_form That's all right. .
边栏推荐
- Yolov5 network structure + code + application details | CSDN creation punch in
- Skip table: principle introduction, advantages and disadvantages of skiplist
- My first Smartphone
- Disassembly and installation of Lenovo r7000 graphics card
- Introduction to webrtc protocol -- an article to understand dtls, SRTP, srtcp
- Win10 install pytullet and test
- Force GCC to compile 32-bit programs on 64 bit platform
- Redis 击穿穿透雪崩
- Why should we rewrite hashcode when we rewrite the equals method?
- Introduction to deep learning (II) -- univariate linear regression
猜你喜欢
[basic grammar] C language uses for loop to print Pentagram
Differences among bio, NiO and AIO
appium1.22.x 版本後的 appium inspector 需單獨安裝
【实战项目】自主web服务器
Webrtc protocol introduction -- an article to understand ice, stun, NAT, turn
谷歌 | 蛋白序列的深度嵌入和比对
Progressive multi grasp detection using grasp path for rgbd images
XML配置文件
音频焦点系列:手写一个demo理解音频焦点与AudioMananger
How to connect the network: Chapter 1 CSDN creation punch in
随机推荐
study hard and make progress every day
音频焦点系列:手写一个demo理解音频焦点与AudioMananger
Webrtc native M96 version opening trip -- a reading code download and compilation (Ninja GN depot_tools)
Objects. Requirenonnull method description
Redis breakdown penetration avalanche
112 stucked keyboard (20 points)
6.23星期四库作业
Pan details of deep learning
Force GCC to compile 32-bit programs on 64 bit platform
【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令-关闭cmd窗口、退出cmd环境(exit、exit /b、goto :eof)
[practical project] autonomous web server
Yolov5 network structure + code + application details | CSDN creation punch in
1107 social clusters (30 points)
Redis 击穿穿透雪崩
1106 lowest price in supply chain (25 points)
1094 the largest generation (25 points)
XML配置文件
[Yu Yue education] basic reference materials of interchangeability and measurement technology of Zhongyuan Institute of Technology
Training method of grasping angle in grasping detection
(perfect solution) how to set the position of Matplotlib legend freely