public static Specification<JpaTargetFilterQuery> likeName(final String searchText) {
        return (targetFilterQueryRoot, query, cb) -> {
            final String searchTextToLower = searchText.toLowerCase();
            return cb.like(cb.lower(targetFilterQueryRoot.get(JpaTargetFilterQuery_.name)), searchTextToLower);
        };
    }
public static Specification < JpaTargetFilterQuery > likeName ( final String searchText ) { return ( targetFilterQueryRoot , query , cb ) -> { final String searchTextToLower = searchText . toLowerCase ( ) ; return cb . like ( cb . lower ( targetFilterQueryRoot . get ( JpaTargetFilterQuery_ . name ) ) , searchTextToLower ) ; } ; }
{@link Specification} for retrieving {@link JpaTargetFilterQuery}s based
on is {@link JpaTargetFilterQuery#getName()}.

@param searchText
of the filter
@return the {@link JpaTargetFilterQuery} {@link Specification}