当前位置:网站首页>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. .
边栏推荐
- 1086 tree traversals again (25 points)
- 1107 social clusters (30 points)
- Gan network thought
- 6.23星期四库作业
- JS function algorithm interview case
- Online VR model display - 3D visual display solution
- study hard and make progress every day
- leetcode435. Non overlapping interval
- appium1.22.x 版本後的 appium inspector 需單獨安裝
- [practical project] autonomous web server
猜你喜欢

(subplots usage) Matplotlib how to draw multiple subgraphs (axis field)

Online VR model display - 3D visual display solution

Detailed explanation of the output end (head) of yolov5 | CSDN creation punch in

Actual combat 8051 drives 8-bit nixie tube

Technical analysis of qianyuantong multi card aggregation router

Primary school campus IP network broadcasting - Design of primary school IP digital broadcasting system based on campus LAN

Detailed explanation of yolov5 training own data set

SimpleITK学习笔记

Webrtc protocol introduction -- an article to understand ice, stun, NAT, turn

Gbase8s composite index (I)
随机推荐
1094 the largest generation (25 points)
[backtrader source code analysis 5] rewrite several time number conversion functions in utils with Python
study hard and make progress every day
Webapidom get page elements
Introduction to deep learning - definition Introduction (I)
在PyCharm中配置使用Anaconda环境
酒店公共广播背景音乐-基于互联网+的酒店IP网络广播系统设计
Installing altaro VM backup
Basic knowledge of reflection (detailed explanation)
求质数的方法
How to connect the network: Chapter 1 CSDN creation punch in
How to connect the network: Chapter 2 (Part 1): a life cycle of TCP connection | CSDN creation punch in
ninja: build stopped: subcommand failed.
Maximum continuous sub segment sum (dynamic programming, recursive, recursive)
JQ style, element operation, effect, filtering method and transformation, event object
Pytorch through load_ state_ Dict load weight
Basic introduction of redis and explanation of eight types and transactions
[set theory] relation properties (transitivity | transitivity examples | transitivity related theorems)
Yolov5 input (I) -- mosaic data enhancement | CSDN creative punch in
appium1.22.x 版本后的 appium inspector 需单独安装