docs: protected <X> Specification<ENTITY> equalsSpecification(Function<Root<ENTITY>, Expression<X>> metaclassFunction, final X value) {
          return (root, query, builder) -> builder.equal(metaclassFunction.apply(root), value);
      }