当前位置:网站首页>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. .
边栏推荐
- Self introduction and objectives
- Go practice - gorilla / handlers used by gorilla web Toolkit
- [basic grammar] C language uses for loop to print Pentagram
- Gbase8s composite index (I)
- Redis Introduction et explication des types de données
- Pessimistic lock and optimistic lock of multithreading
- 1119 pre- and post order traversals (30 points)
- Overview of basic knowledge of C language
- Technical analysis of qianyuantong multi card aggregation router
- Disassembly and installation of Lenovo r7000 graphics card
猜你喜欢

Gbase8s composite index (I)

Skip table: principle introduction, advantages and disadvantages of skiplist

Detailed explanation of yolov5 training own data set

Win10 install pytullet and test

Differences among bio, NiO and AIO

Introduction to deep learning (II) -- univariate linear regression

Promise

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

Three representations of signed numbers: original code, inverse code and complement code

BTC-密码学原理
随机推荐
[set theory] relational power operation (relational power operation | examples of relational power operation | properties of relational power operation)
Robot capture experiment demonstration video
Redis 入门和数据类型讲解
Installing altaro VM backup
Webapidom get page elements
穀歌 | 蛋白序列的深度嵌入和比對
Appium 1.22. L'Inspecteur appium après la version X doit être installé séparément
Differences among bio, NiO and AIO
"Hands on deep learning" pytorch edition Chapter II exercise
Go practice -- gorilla/rpc (gorilla/rpc/json) used by gorilla web Toolkit
leetcode860. Lemonade change
appium1.22.x 版本後的 appium inspector 需單獨安裝
JS dynamic table creation
Go practice -- design patterns in golang's singleton
112 stucked keyboard (20 points)
动态规划——相关概念,(数塔问题)
Go practice -- factory mode of design patterns in golang (simple factory, factory method, abstract factory)
Go practice -- closures in golang (anonymous functions, closures)
SimpleITK学习笔记
Redis expiration elimination mechanism