code: protected void applyCacheHints(TypedQuery<?> typedQuery, SearchParameters sp) {
          if (sp.isCacheable()) {
              typedQuery.setHint("org.hibernate.cacheable", true);
  
              if (sp.hasCacheRegion()) {
                  typedQuery.setHint("org.hibernate.cacheRegion", sp.getCacheRegion());
              } else {
                  typedQuery.setHint("org.hibernate.cacheRegion", cacheRegion);
              }
          }
      }
docs: /*
  Set hints for 2d level cache.