@Test public void testEmptyFieldOnPrefix() throws Exception { FilterPredicate pred = new FilterPredicate(new Path.PathElement(Book.class, String.class, ""), Operator.PREFIX_CASE_INSENSITIVE, Arrays.asList("value")); FilterTranslator filterOp = new FilterTranslator(); assertThrows(InvalidValueException.class, () -> filterOp.apply(pred)); }
@Override public String apply(FilterPredicate filterPredicate) { return apply(filterPredicate, false); }
FilterTranslator implements FilterOperation<String> { @Override public String apply(FilterPredicate filterPredicate) { return apply(filterPredicate, false); } }
FilterTranslator implements FilterOperation<String> { @Override public String apply(FilterPredicate filterPredicate) { return apply(filterPredicate, false); }  }
FilterTranslator implements FilterOperation<String> { @Override public String apply(FilterPredicate filterPredicate) { return apply(filterPredicate, false); }  static void registerJPQLGenerator(Operator op,
                                             JPQLPredicateGenerator generator); static void registerJPQLGenerator(Operator op,
                                             Class<?> entityClass,
                                             String fieldName,
                                             JPQLPredicateGenerator generator); static JPQLPredicateGenerator lookupJPQLGenerator(Operator op,
                                           Class<?> entityClass,
                                           String fieldName); static JPQLPredicateGenerator lookupJPQLGenerator(Operator op); @Override String apply(FilterPredicate filterPredicate); String apply(FilterExpression filterExpression, boolean prefixWithAlias); }
FilterTranslator implements FilterOperation<String> { @Override public String apply(FilterPredicate filterPredicate) { return apply(filterPredicate, false); }  static void registerJPQLGenerator(Operator op,
                                             JPQLPredicateGenerator generator); static void registerJPQLGenerator(Operator op,
                                             Class<?> entityClass,
                                             String fieldName,
                                             JPQLPredicateGenerator generator); static JPQLPredicateGenerator lookupJPQLGenerator(Operator op,
                                           Class<?> entityClass,
                                           String fieldName); static JPQLPredicateGenerator lookupJPQLGenerator(Operator op); @Override String apply(FilterPredicate filterPredicate); String apply(FilterExpression filterExpression, boolean prefixWithAlias);  }