@Override public void visit(final SingleComparisonNode node) { checkNotNull(node, "single comparison node"); final FilterFieldExpression field = fieldExprFactory.filterBy(node.getComparisonProperty()); final SingleComparisonNode.Type type = node.getComparisonType(); final Object value = node.getComparisonValue(); final BiFunction<CriteriaFactory, Object, Predicate> predicateFactory = SINGLE_COMPARISON_NODE_MAPPING.get(type); if (predicateFactory == null) { throwUnknownType(type); } final Predicate predicate = predicateFactory.apply(criteriaFactory, value); criteria.add(criteriaFactory.fieldCriteria(field, predicate)); }