forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hibernate 5 brings a breaking change by setting the `hibernate.id.new_generator_mappings` property to `true` by default. This does not use a sequence for a `Long` PK and therefore any SQL not providing a value for the primary key will break. Also, Hibernate 5 changed its naming strategy API so we'll have to detect that in `JpaProperties#Hibernate` and set the appropriate value. See spring-projectsgh-2763
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
spring-boot-samples/spring-boot-sample-data-jpa/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
spring.h2.console.enabled=true | ||
|
||
logging.level.org.hibernate.SQL=debug | ||
logging.level.org.hibernate.SQL=debug | ||
|
||
|
||
spring.jpa.properties.hibernate.id.new_generator_mappings=false |