Help the world stop coronavirus! Stay home!

Prev Next

Hibernate / Hibernate Caching

Effect of native query on hibernate cache.

When using native SQL queries you have to address the risk of invalidating existing cache when query cache enabled.

Using SQLQuery, Hibernate couldn't know what cache regions you might affect, however you can explicitly provide the instruction. With the explicit instruction, hibernate know which query caches to invalidate, otherwise it may discard all the cache entries.

This only affects the second level cache.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...


Comments & Discussions