private static StringChecker oqlChecker(Criterion<?> criteria, boolean useBindVariables) {
        final PathNaming pathNaming = ReservedWordNaming.of(PathNaming.defaultNaming());
        final GeodeQueryVisitor queryVisitor = new GeodeQueryVisitor(useBindVariables, pathNaming);
        Expression filter = Criterias.toQuery(criteria).filter().orElseThrow(() -> new IllegalStateException("no filter"));
        return check(filter.accept(queryVisitor).oql());
    }
When not using bind variables enum shouold be converted to {@code enum.name == 'value'}
criteria/geode/test/org/immutables/criteria/geode/GeodeQueryVisitorTest.java