Multiple choice technology web technology

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

The correct property name is hibernate.cache.use_query_cache with value 'true'. This enables caching of query result sets. Option A has the wrong property name, and option C uses 'yes' instead of 'true'.