File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 50
50
* evict a whole cache region, or {@link #evictEntityData(Class, Object)}, to evict
51
51
* a single item.
52
52
* <p>
53
+ * The second-level cache is never aware of changes made externally to Hibernate,
54
+ * for example, directly via JDBC, or by another program. Therefore, programmatic
55
+ * eviction might be required in order to ensure that such updates do not result
56
+ * in stale data being read from the cache.
57
+ * <p>
53
58
* If multiple entities or roles are mapped to the same cache region, they share
54
59
* policies and even the same FIFO-type expiry queue (if any). This sounds useful,
55
60
* but comes with the downside that {@link #evictEntityData(Class)} for any one of
You can’t perform that action at this time.
0 commit comments