From 59ab305835017a9802e050ce8e4f3940894fbc6e Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Thu, 29 Sep 2016 19:10:11 +0200 Subject: [PATCH] Adapt for HHH-9329 --- .../persistence/impl/hibernate/HibernateJpa21Provider.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integration/hibernate-base/src/main/java/com/blazebit/persistence/impl/hibernate/HibernateJpa21Provider.java b/integration/hibernate-base/src/main/java/com/blazebit/persistence/impl/hibernate/HibernateJpa21Provider.java index cb1a6ef03a..dd186f8c75 100644 --- a/integration/hibernate-base/src/main/java/com/blazebit/persistence/impl/hibernate/HibernateJpa21Provider.java +++ b/integration/hibernate-base/src/main/java/com/blazebit/persistence/impl/hibernate/HibernateJpa21Provider.java @@ -46,11 +46,18 @@ public HibernateJpa21Provider(EntityManager em, String dbms, Database database, public boolean supportsJpa21() { return true; } + @Override public boolean supportsEntityJoin() { return major > 5 || major == 5 && minor >= 1; } + @Override + public boolean needsJoinSubqueryRewrite() { + // Got fixed in 5.2.3: https://hibernate.atlassian.net/browse/HHH-9329 + return major < 5 || major == 5 && minor < 2 || major == 5 && minor == 2 && fix < 3; + } + @Override public String getOnClause() { return "ON";