随笔分类 -  springdata jpa

spring-data-jpa中findById()的使用
摘要:springboot 2.x 版本后,较之前的版本在此方法的使用上有差: 如果找到匹配的id数据,则赋值给foo;否则则将括号中的对象赋值给foo。 阅读全文
posted @ 2019-08-22 16:15 kongieg 阅读(13019) 评论(0) 推荐(2)
Caused by: java.sql.SQLSyntaxErrorException: Table 'sell.hibernate_sequence' doesn't exist
摘要:数据表: domain: Repository: 测试代码: 报错:Caused by: java.sql.SQLSyntaxErrorException: Table 'sell.hibernate_sequence' doesn't exist 解决:在domain实体类指明主键生成策略,保持数 阅读全文
posted @ 2019-08-20 10:18 kongieg 阅读(3269) 评论(0) 推荐(0)