JPA Method
in javax.persistence.criteria.CriteriaBuilder

Predicate like(
  Expression<String> x, 
  String pattern, 
  Expression<Character> escapeChar
)


Create a predicate for testing whether the expression satisfies the given pattern.
Parameters:
x - string expression
pattern - string
escapeChar - escape character expression
Return:
like predicate
Since:
JPA 2.0