@Override
    public boolean wrapConstant(Object constant) {
        // related : https://hibernate.onjira.com/browse/HHH-6913
        Class<?> type = constant.getClass();
        return type.isArray() || Collection.class.isAssignableFrom(type);
    }
HQLTemplates extends {@link JPQLTemplates} with Hibernate specific extensions

@author tiwe
querydsl-jpa/src/main/java/com/querydsl/jpa/HQLTemplates.java