code: protected void addLikeCondition(final String propertyName, final String value) {
          final Expression<String> propertyNameField = getRootPath().get(propertyName).as(String.class);
          fieldConditions.add(getCriteriaBuilder().like(propertyNameField, "%" + cleanLikeCondition(value) + "%"));
      }
docs: Add a Field Search Condition that will search a field for a specified value using the following SQL logic:
  {@code field LIKE '%value%'}
  
  @param propertyName The name of the field as defined in the Entity mapping class.
  @param value        The value to search against.