您的位置: 首页 > 文章 > 关于jpa报错 could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGramm 关于jpa报错 could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGramm 分类: 文章 • 2024-01-04 14:14:22 原因: 实体类的属性中存在驼峰变量名(存在大写字母):previousHash 解决: 1.将驼峰命名的大写字母改成小写。 2.添加@Column注解 个人理解:通过jpa连接操作数据库时,实体类传入jpa时,变量名不能存在大写字母(而对应的数据库表格字段名可以存在大写字母,且是否大小写都不影响)。