Multiple choice technology programming languages

How to enable query cache in hibernate

  1. Hibernate.cache.query_cache true

  2. Hibernate.cache.use_query_cache true

  3. Hibernate.cache.query_cache yes

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To enable the query cache in Hibernate, you must set the configuration property hibernate.cache.use_query_cache to true in the configuration file. The option hibernate.cache.query_cache is incorrect because it is not a valid Hibernate configuration property name.