Table 'DBNAME.hibernate_sequence' doesn't exist
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;
Add the following config in your application.yml:
spring:
jpa:
hibernate:
use-new-id-generator-mappings: false
Or this if you use application.properties
spring.jpa.hibernate.use-new-id-generator-mappings= false
Just in case you migrate from a previous boot version:
setting the following in your application.yml
will prevent hibernate from looking for hibernate_sequence
entries.
spring.jpa.hibernate.use-new-id-generator-mappings
That was the default in Boot 1.x