code: public static Specification<JpaDistributionSet> equalsNameAndVersionIgnoreCase(final String name,
              final String version) {
          return (targetRoot, query, cb) -> cb.and(
                  cb.equal(cb.lower(targetRoot.<String> get(JpaDistributionSet_.name)), name.toLowerCase()),
                  cb.equal(cb.lower(targetRoot.<String> get(JpaDistributionSet_.version)), version.toLowerCase()));
  
      }
docs: returns query criteria {@link Specification} comparing case insensitive
  "NAME == AND VERSION ==".
  
  @param name
  to be filtered on
  @param version
  to be filtered on
  @return the {@link Specification}