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;
More Related Contents:
- What is this spring.jpa.open-in-view=true property in Spring Boot?
- Spring Boot, Spring Data JPA with multiple DataSources
- Unable to get spring boot to automatically create database schema
- Missing CrudRepository#findOne method
- Best way of handling entities inheritance in Spring Data JPA
- How to use Spring Boot with MySQL database and JPA?
- Spring Boot Configure and Use Two DataSources
- Filter invoke twice when register as Spring bean
- Connection to Db dies after >4
- How can I log SQL statements in Spring Boot?
- Using generics in Spring Data JPA repositories
- Is it possible with Spring Boot to serve up JSPs with a JAR packaging?
- How to configure embedded Tomcat integrated with Spring to listen requests to IP address, besides localhost?
- java.lang.NoClassDefFoundError: org/springframework/core/env/ConfigurableEnvironment
- How to enable HTTP response caching in Spring Boot
- How to consume Page response using Spring RestTemplate
- Multiple WebSecurityConfigurerAdapter in spring boot for multiple patterns
- Heroku cannot deploy Java 11 Spring Boot App [duplicate]
- How to get bean using application context in spring boot
- Maven Resource Filtering with Spring Boot: Could not resolve placeholder
- Unable to use Spring Property Placeholders in logback.xml
- Max limit of MultipartFile in Spring Boot
- How to set a Spring Boot property with an underscore in its name via Environment Variables?
- spring-data-mongo – optional query parameters?
- Spring Data – Multi-column searches
- Spring Boot access static resources missing scr/main/resources
- bootstrap.yml configuration not processed anymore with Spring Cloud 2020.0
- How to modify request body before reaching controller in spring boot
- Spring Boot – Reading Text File using ResourceLoader
- Spring Data JPA – Is it possible to sort on a calculated property?