code: public static Specification<JpaDistributionSet> byType(final DistributionSetType type) {
          return (targetRoot, query, cb) -> cb.equal(targetRoot.<JpaDistributionSetType> get(JpaDistributionSet_.type),
                  type);
  
      }
docs: {@link Specification} for retrieving {@link DistributionSet} with given
  {@link DistributionSet#getType()}.
  
  @param type
  to search
  @return the {@link DistributionSet} {@link Specification}