Query caching with JPA 2.1

Should query caching be doable with the details mentioned above?

I’m not sure what do you mean with “details mentioned above”.

Query Cache works only if you explicitly activate it using:

  • the hibernate.cache.use_query_cache configuration property
  • the org.hibernate.cacheable JPA query hint on every cacheable query