diff --git a/spring-boot-autoconfigure/pom.xml b/spring-boot-autoconfigure/pom.xml index e51abb7c1f..8a3bebd6da 100755 --- a/spring-boot-autoconfigure/pom.xml +++ b/spring-boot-autoconfigure/pom.xml @@ -257,7 +257,7 @@ org.hibernate - hibernate-entitymanager + hibernate-core true diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 6d185f3ab1..56d1ff334a 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -82,7 +82,7 @@ 1.4.192 1.3 3.6.3 - 5.1.0.Final + 5.2.0.Final 5.2.4.Final 2.4.6 2.3.13 @@ -1717,21 +1717,11 @@ hibernate-ehcache ${hibernate.version} - - org.hibernate - hibernate-entitymanager - ${hibernate.version} - org.hibernate hibernate-envers ${hibernate.version} - - org.hibernate - hibernate-java8 - ${hibernate.version} - org.hibernate hibernate-jpamodelgen diff --git a/spring-boot-devtools/pom.xml b/spring-boot-devtools/pom.xml index a0633e83d3..69468f6515 100644 --- a/spring-boot-devtools/pom.xml +++ b/spring-boot-devtools/pom.xml @@ -51,7 +51,7 @@ org.hibernate - hibernate-entitymanager + hibernate-core true diff --git a/spring-boot-docs/pom.xml b/spring-boot-docs/pom.xml index d3f216db1b..440ff6b884 100644 --- a/spring-boot-docs/pom.xml +++ b/spring-boot-docs/pom.xml @@ -442,7 +442,7 @@ org.hibernate - hibernate-entitymanager + hibernate-core true diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index cd838b608e..beb88311fe 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -2629,6 +2629,28 @@ http://spring.io/guides/gs/accessing-data-jpa/['`Accessing Data with JPA`'] guid http://spring.io and read the http://projects.spring.io/spring-data-jpa/[Spring Data JPA] and http://hibernate.org/orm/documentation/[Hibernate] reference documentation. +[NOTE] +==== +As of Hibernate 5.2, the `hibernate-entitymanager` module has been merged in +`hibernate-core`. If you need to downgrade, you'll have to add `hibernate-entitymanager` +yourself, something like: + +```xml + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.hibernate + hibernate-entitymanager + ${hibernate.version} + +``` + +As Hibernate does not bundle the `hibernate-entitymanager` and `hibernate-java8` +artifacts anymore, Spring Boot doesn't provide dependency management for them. +==== + [[boot-features-entity-classes]] diff --git a/spring-boot-samples/spring-boot-sample-hibernate4/pom.xml b/spring-boot-samples/spring-boot-sample-hibernate4/pom.xml index 282c375331..7a3bdf1fee 100755 --- a/spring-boot-samples/spring-boot-sample-hibernate4/pom.xml +++ b/spring-boot-samples/spring-boot-sample-hibernate4/pom.xml @@ -24,6 +24,11 @@ org.springframework.boot spring-boot-starter-data-jpa + + org.hibernate + hibernate-entitymanager + ${hibernate.version} + org.springframework.boot spring-boot-starter-web diff --git a/spring-boot-samples/spring-boot-sample-jpa/pom.xml b/spring-boot-samples/spring-boot-sample-jpa/pom.xml index 2a0fb66364..6f46bcdea6 100644 --- a/spring-boot-samples/spring-boot-sample-jpa/pom.xml +++ b/spring-boot-samples/spring-boot-sample-jpa/pom.xml @@ -25,7 +25,7 @@ org.hibernate - hibernate-entitymanager + hibernate-core com.h2database diff --git a/spring-boot-starters/spring-boot-starter-data-jpa/pom.xml b/spring-boot-starters/spring-boot-starter-data-jpa/pom.xml index 4a20446381..ee52033a02 100644 --- a/spring-boot-starters/spring-boot-starter-data-jpa/pom.xml +++ b/spring-boot-starters/spring-boot-starter-data-jpa/pom.xml @@ -32,7 +32,7 @@ org.hibernate - hibernate-entitymanager + hibernate-core org.apache.geronimo.specs diff --git a/spring-boot-test-autoconfigure/pom.xml b/spring-boot-test-autoconfigure/pom.xml index 7997a7d350..84741afe6c 100644 --- a/spring-boot-test-autoconfigure/pom.xml +++ b/spring-boot-test-autoconfigure/pom.xml @@ -56,7 +56,7 @@ org.hibernate - hibernate-entitymanager + hibernate-core org.jboss.spec.javax.transaction diff --git a/spring-boot/pom.xml b/spring-boot/pom.xml index 6dbef42a7c..25648b9977 100644 --- a/spring-boot/pom.xml +++ b/spring-boot/pom.xml @@ -171,7 +171,7 @@ org.hibernate - hibernate-entitymanager + hibernate-core true