DATAJPA-444 - Prefer Hibernate 4.3 provider interface over legacy one.

Accessing the legacy persistence provider class in Hibernate 4.3 causes a warning being logged. As we generally want to detect the presence of Hibernate in general only, we now check for the Hibernate 4.3 persistence provider interface first to immediately find the new interface and thus avoid the warning.

Upgraded to Hibernate 4.3.1.
This commit is contained in:
Oliver Gierke
2014-01-24 16:57:12 +01:00
parent cae3ce4532
commit 655ad131d2
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@
<profile>
<id>hibernate-43</id>
<properties>
<hibernate>4.3.0.Final</hibernate>
<hibernate>4.3.1.Final</hibernate>
</properties>
</profile>
</profiles>

View File

@@ -45,7 +45,7 @@ public enum PersistenceProvider implements QueryExtractor {
*
* @see DATAJPA-444
*/
HIBERNATE(Constants.HIBERNATE_ENTITY_MANAGER_INTERFACE, Constants.HIBERNATE43_ENTITY_MANAGER_INTERFACE) {
HIBERNATE(Constants.HIBERNATE43_ENTITY_MANAGER_INTERFACE, Constants.HIBERNATE_ENTITY_MANAGER_INTERFACE) {
public String extractQueryString(Query query) {