Class CollectionCacheInvalidator

java.lang.Object
org.hibernate.cache.internal.CollectionCacheInvalidator
All Implemented Interfaces:
PostDeleteEventListener, PostInsertEventListener, PostUpdateEventListener, Integrator

public class CollectionCacheInvalidator extends Object implements Integrator, PostInsertEventListener, PostDeleteEventListener, PostUpdateEventListener
Allows the collection cache to be automatically evicted if an element is inserted/removed/updated *without* properly managing both sides of the association (ie, the ManyToOne collection is changed w/o properly managing the OneToMany).

For this functionality to be used, "hibernate.cache.auto_evict_collection_cache" must be enabled. For performance reasons, it's disabled by default.