DATAJPA-911 - Assert compatibility with Hibernate 5.2.

We now use a completely reflective lookup of the Hibernate query string as well as for the Hibernate specific PersistenceProvider lookup in tests.

Added build profile for Hibernate 5.2 but it's currently not working due to Hibernate complaining about an invalid identifier mapping on CustomAbstractPersistable which is overriding the parent types  property on accessor working fine on 5.1.

The build profile for 5.1 is still broken due to the fixed but yet unreleased HHH-10514 [0] and the not yet fixed HHH-10515 [1] (apparently fixed but still open and unreleased) which has been broken since 5.0.8.

[0] https://hibernate.atlassian.net/browse/HHH-10514
[1] https://hibernate.atlassian.net/browse/HHH-10515
This commit is contained in:
Oliver Gierke
2016-06-03 19:33:07 +02:00
parent 0b2eab0ea5
commit 196655a997
8 changed files with 150 additions and 19 deletions

10
pom.xml
View File

@@ -23,6 +23,7 @@
<eclipselink>2.6.2</eclipselink>
<hibernate>3.6.10.Final</hibernate>
<hibernate.artifact>hibernate-entitymanager</hibernate.artifact>
<hsqldb1>1.8.0.10</hsqldb1>
<jpa>2.0.0</jpa>
<openjpa>2.3.0</openjpa>
@@ -88,6 +89,13 @@
</repository>
</repositories>
</profile>
<profile>
<id>hibernate-52</id>
<properties>
<hibernate>5.2.0.Final</hibernate>
<hibernate.artifact>hibernate-core</hibernate.artifact>
</properties>
</profile>
<profile>
<id>eclipselink-next</id>
<properties>
@@ -215,7 +223,7 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<artifactId>${hibernate.artifact}</artifactId>
<version>${hibernate}</version>
<optional>true</optional>
</dependency>