Skip to content

Commit 2ff9e3c

Browse files
committed
Upgrade to Hibernate 5.2
See gh-6111
1 parent d9d26cb commit 2ff9e3c

File tree

10 files changed

+35
-18
lines changed

10 files changed

+35
-18
lines changed

spring-boot-autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
</dependency>
258258
<dependency>
259259
<groupId>org.hibernate</groupId>
260-
<artifactId>hibernate-entitymanager</artifactId>
260+
<artifactId>hibernate-core</artifactId>
261261
<optional>true</optional>
262262
</dependency>
263263
<dependency>

spring-boot-dependencies/pom.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<h2.version>1.4.192</h2.version>
8383
<hamcrest.version>1.3</hamcrest.version>
8484
<hazelcast.version>3.6.3</hazelcast.version>
85-
<hibernate.version>5.1.0.Final</hibernate.version>
85+
<hibernate.version>5.2.0.Final</hibernate.version>
8686
<hibernate-validator.version>5.2.4.Final</hibernate-validator.version>
8787
<hikaricp.version>2.4.6</hikaricp.version>
8888
<hikaricp-java6.version>2.3.13</hikaricp-java6.version>
@@ -1717,21 +1717,11 @@
17171717
<artifactId>hibernate-ehcache</artifactId>
17181718
<version>${hibernate.version}</version>
17191719
</dependency>
1720-
<dependency>
1721-
<groupId>org.hibernate</groupId>
1722-
<artifactId>hibernate-entitymanager</artifactId>
1723-
<version>${hibernate.version}</version>
1724-
</dependency>
17251720
<dependency>
17261721
<groupId>org.hibernate</groupId>
17271722
<artifactId>hibernate-envers</artifactId>
17281723
<version>${hibernate.version}</version>
17291724
</dependency>
1730-
<dependency>
1731-
<groupId>org.hibernate</groupId>
1732-
<artifactId>hibernate-java8</artifactId>
1733-
<version>${hibernate.version}</version>
1734-
</dependency>
17351725
<dependency>
17361726
<groupId>org.hibernate</groupId>
17371727
<artifactId>hibernate-jpamodelgen</artifactId>

spring-boot-devtools/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</dependency>
5252
<dependency>
5353
<groupId>org.hibernate</groupId>
54-
<artifactId>hibernate-entitymanager</artifactId>
54+
<artifactId>hibernate-core</artifactId>
5555
<optional>true</optional>
5656
</dependency>
5757
<dependency>

spring-boot-docs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442
</dependency>
443443
<dependency>
444444
<groupId>org.hibernate</groupId>
445-
<artifactId>hibernate-entitymanager</artifactId>
445+
<artifactId>hibernate-core</artifactId>
446446
<optional>true</optional>
447447
</dependency>
448448
<dependency>

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2629,6 +2629,28 @@ http://spring.io/guides/gs/accessing-data-jpa/['`Accessing Data with JPA`'] guid
26292629
http://spring.io and read the http://projects.spring.io/spring-data-jpa/[Spring Data JPA]
26302630
and http://hibernate.org/orm/documentation/[Hibernate] reference documentation.
26312631

2632+
[NOTE]
2633+
====
2634+
As of Hibernate 5.2, the `hibernate-entitymanager` module has been merged in
2635+
`hibernate-core`. If you need to downgrade, you'll have to add `hibernate-entitymanager`
2636+
yourself, something like:
2637+
2638+
```xml
2639+
<dependency>
2640+
<groupId>org.springframework.boot</groupId>
2641+
<artifactId>spring-boot-starter-data-jpa</artifactId>
2642+
</dependency>
2643+
<dependency>
2644+
<groupId>org.hibernate</groupId>
2645+
<artifactId>hibernate-entitymanager</artifactId>
2646+
<version>${hibernate.version}</version>
2647+
</dependency>
2648+
```
2649+
2650+
As Hibernate does not bundle the `hibernate-entitymanager` and `hibernate-java8`
2651+
artifacts anymore, Spring Boot doesn't provide dependency management for them.
2652+
====
2653+
26322654

26332655

26342656
[[boot-features-entity-classes]]

spring-boot-samples/spring-boot-sample-hibernate4/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
<groupId>org.springframework.boot</groupId>
2525
<artifactId>spring-boot-starter-data-jpa</artifactId>
2626
</dependency>
27+
<dependency>
28+
<groupId>org.hibernate</groupId>
29+
<artifactId>hibernate-entitymanager</artifactId>
30+
<version>${hibernate.version}</version>
31+
</dependency>
2732
<dependency>
2833
<groupId>org.springframework.boot</groupId>
2934
<artifactId>spring-boot-starter-web</artifactId>

spring-boot-samples/spring-boot-sample-jpa/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</dependency>
2626
<dependency>
2727
<groupId>org.hibernate</groupId>
28-
<artifactId>hibernate-entitymanager</artifactId>
28+
<artifactId>hibernate-core</artifactId>
2929
</dependency>
3030
<dependency>
3131
<groupId>com.h2database</groupId>

spring-boot-starters/spring-boot-starter-data-jpa/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</dependency>
3333
<dependency>
3434
<groupId>org.hibernate</groupId>
35-
<artifactId>hibernate-entitymanager</artifactId>
35+
<artifactId>hibernate-core</artifactId>
3636
<exclusions>
3737
<exclusion>
3838
<groupId>org.apache.geronimo.specs</groupId>

spring-boot-test-autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</dependency>
5757
<dependency>
5858
<groupId>org.hibernate</groupId>
59-
<artifactId>hibernate-entitymanager</artifactId>
59+
<artifactId>hibernate-core</artifactId>
6060
<exclusions>
6161
<exclusion>
6262
<groupId>org.jboss.spec.javax.transaction</groupId>

spring-boot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
</dependency>
172172
<dependency>
173173
<groupId>org.hibernate</groupId>
174-
<artifactId>hibernate-entitymanager</artifactId>
174+
<artifactId>hibernate-core</artifactId>
175175
<optional>true</optional>
176176
</dependency>
177177
<dependency>

0 commit comments

Comments
 (0)