![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jpa
落日流年
无力吐槽
展开
-
Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet 报错原因
jpa执行分页操作时,可能报错Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet原因:1.表与字段没有对应起来2.数据库连接池配置方言与数据库不匹配//oracle数据库方言hibernate.dialect=org.hibernate.dialect.O原创 2017-12-19 17:31:18 · 35959 阅读 · 0 评论 -
jpa数据库增删改查基本操作
1.插入一条数据(保存实体)save(T entity)2.查找一个特定实体findOne(Id)3.删除指定实体delete(T entity);delete(Id);4.更新实体@Transaction@Modifying@Query("update Customer as c set c.name = ?1 where c.userid=?2")i原创 2017-12-19 17:33:16 · 23160 阅读 · 1 评论