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:
2
pom.xml
2
pom.xml
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user