Does Hibernate Layer 2 Caching Continue When Executing JPQL Update Instructions

When you run the JPQL update or delete request, is Hibernate enough to invalidate the second level cache for the changed entity?

A simplified example:

You have JPQL:

update Product p set p.status = 'S' where p.name like 'Monitor%'

If you currently have products in the second level cache when you run this statement, will Hibernate invalidate all products from the cache or do nothing in the cache, and the products in the second level cache are now invalid?

Just FYI ... I am using JBoss 5.1 with Hibernate and JBossCache

+3
source share
1 answer
0

Source: https://habr.com/ru/post/1727688/


All Articles