src/main/java/org/criteria4jpa/criterion/Restrictions.java
public static SimpleExpression like(String relativePath, String value, MatchMode matchMode) {
    return new SimpleExpression(relativePath, matchMode.toMatchString(value), "LIKE" );
  }
public static SimpleExpression like(String relativePath, String value, MatchMode matchMode) {
    return new SimpleExpression(relativePath, matchMode.toMatchString(value), "LIKE" );
  }
Adds a "like" constraint to a <i>persistent field</i>. This method
requires a {@link MatchMode} to specify how wildcards are added
to the value. You may also use {@link #like(String, String)} if you
want to manually specify the wildcards in the match string.

@param relativePath relative path of the field
@param value the match string
@param matchMode specifies how to add wildcards to the value to create
the LIKE expression
@return {@link Criterion} instance