当前位置:网站首页>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. .
边栏推荐
- ROS Compilation Principle
- Go practice -- use redis in golang (redis and go redis / redis)
- Basic knowledge of reflection (detailed explanation)
- 在PyCharm中配置使用Anaconda环境
- [basic grammar] Snake game written in C language
- Redis breakdown penetration avalanche
- About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
- My first Smartphone
- Objects. Requirenonnull method description
- leetcode435. Non overlapping interval
猜你喜欢
求质数的方法
leetcode435. Non overlapping interval
Progressive multi grasp detection using grasp path for rgbd images
Go practice -- design patterns in golang's singleton
How to connect the network: Chapter 2 (Part 1): a life cycle of TCP connection | CSDN creation punch in
Why should we rewrite hashcode when we rewrite the equals method?
Basic knowledge of reflection (detailed explanation)
appium1.22.x 版本后的 appium inspector 需单独安装
穀歌 | 蛋白序列的深度嵌入和比對
3dslam with 16 line lidar and octomap
随机推荐
Go practice -- gorilla / websocket used by gorilla web Toolkit
@Autowired 导致空指针报错 解决方式
Intégration profonde et alignement des séquences de protéines Google
Robot capture experiment demonstration video
leetcode435. Non overlapping interval
编译GCC遇到的“pthread.h” not found问题
Introduction to deep learning - definition Introduction (I)
Detailed explanation of yolov5 training own data set
Disassembly and installation of Lenovo r7000 graphics card
Why should we rewrite hashcode when we rewrite the equals method?
Common interview questions of microservice
Calculation method of AUC
1115 counting nodes in a BST (30 points)
Based on RFC 3986 (unified resource descriptor (URI): general syntax)
Progressive multi grasp detection using grasp path for rgbd images
微服务常见面试题
Making coco datasets
1086 tree traversals again (25 points)
1119 pre- and post order traversals (30 points)
大学校园IP网络广播-厂家基于校园局域网的大学校园IP广播方案设计指南