原文: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实体类指明主键生成策略,保持数据库一致 JPA四种生成策略了解下。 疑点:原文使用 GeneratedValue注解,即 Genera ...

2019-08-20 10:18 0 1094 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM