Drop back to Hibernate 5.0.9.Final
The upgrade to Hibernate 5.2.0.Final has provide to be too problematic to live with. It requires Java 8, is incompatible with a number of other projects in the Hibernate ecosystem, and it's unclear for how long it will be maintained. We'd previously used Hibernate 5.1.0.Final but its maintenance is also unclear with Hibernate 5.1.1.Final being more than 3 months overdue. This commit drops back to Hibernate 5.0.9.Final. This has a few advantages: - It's Java 7 compatible - It's had some time to mature and should be reasonably free of regressions for those moving from 4.3.x - It's used in both Wildfly and JBoss EAP so there's a fair chance that it will continue to be maintained. Closes gh-6198
This commit is contained in:
@@ -2634,31 +2634,17 @@ 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 need to directly add the
|
||||
dependency yourself, for example:
|
||||
|
||||
[source,xml,indent=0]
|
||||
----
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<version>${hibernate.version}</version>
|
||||
</dependency>
|
||||
----
|
||||
|
||||
As Hibernate does not bundle the `hibernate-entitymanager` and `hibernate-java8`
|
||||
artifacts anymore, Spring Boot doesn't provide dependency management for them.
|
||||
By default, Spring Boot uses Hibernate 5.0.x. However it's also possible to use 4.3.x
|
||||
or 5.2.x if you wish. Please refer to the
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-hibernate4[Hibernate 4] and
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-hibernate52[Hibernate 5.2] samples
|
||||
to see how to do so.
|
||||
====
|
||||
|
||||
|
||||
|
||||
[[boot-features-entity-classes]]
|
||||
==== Entity Classes
|
||||
Traditionally, JPA '`Entity`' classes are specified in a `persistence.xml` file. With
|
||||
|
||||
Reference in New Issue
Block a user