当前位置:网站首页>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. .
边栏推荐
- MySQL master-slave configuration
- Gan network thought
- My first Smartphone
- Training method of grasping angle in grasping detection
- Use posture of sudo right raising vulnerability in actual combat (cve-2021-3156)
- BTC-密码学原理
- How to connect the network: Chapter 1 CSDN creation punch in
- [set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)
- Progressive multi grasp detection using grasp path for rgbd images
- JS dynamic table creation
猜你喜欢

JS scope

leetcode860. Lemonade change

BTC-密码学原理

微服务常见面试题

Web APIs exclusivity

Gbase8s composite index (I)

【实战项目】自主web服务器
![[basic grammar] Snake game written in C language](/img/cb/83631ef3ccd7047ca42d33dc49bf90.jpg)
[basic grammar] Snake game written in C language

Use posture of sudo right raising vulnerability in actual combat (cve-2021-3156)

Progressive multi grasp detection using grasp path for rgbd images
随机推荐
Class loading mechanism (detailed explanation of the whole process)
Why is go language particularly popular in China
Rust基础入门之(基本类型)
1111 online map (30 points)
Bluebridge cup real topic 2020 palindrome date simulation construction provincial competition
JQ style, element operation, effect, filtering method and transformation, event object
leetcode435. Non overlapping interval
Disassembly and installation of Lenovo r7000 graphics card
Use posture of sudo right raising vulnerability in actual combat (cve-2021-3156)
2022-02-11 daily clock in: problem fine brush
【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令-关闭cmd窗口、退出cmd环境(exit、exit /b、goto :eof)
Promise
Redis 入門和數據類型講解
1106 lowest price in supply chain (25 points)
[basic grammar] Snake game written in C language
Redis Introduction et explication des types de données
Appium 1.22. L'Inspecteur appium après la version X doit être installé séparément
Configure and use Anaconda environment in pycharm
Go practice -- closures in golang (anonymous functions, closures)
Learn libcef together -- set cookies for your browser