fix HibernateJpqlFunctionAdapter for Hibernate 5.3
@@ -77,7 +77,7 @@ public class HibernateJpqlFunctionAdapter implements SQLFunction {
return type;
}
- if (sfi.getClassMetadata(returnType) != null) {
+ if (sfi.getEntityPersisters().containsKey(returnType.getName())) {
return sfi.getTypeHelper().entity(returnType);
}
