Table 'DBNAME.hibernate_sequence' doesn't exist

前端 未结 5 1374
离开以前
离开以前 2020-12-29 17:45

I have a SpringBoot 2.0.1.RELEASE application using spring data / jpa


    org.sprin         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 18:13

    With the generation GenerationType.AUTO hibernate will look for the default hibernate_sequence table , so change generation to IDENTITY as below :

     @Id
     @GeneratedValue(strategy = GenerationType.IDENTITY)
     private Long id;
    

提交回复
热议问题