|
CollectionCacheInvalidator logs error on change entity with cached collection ERROR o.h.c.i.CollectionCacheInvalidator - org.hibernate.TransientObjectException: The instance was not associated with this session (full in attach)
Steps for reproduce:
-
Set hibernate.cache.auto_evict_collection_cache=true in config
-
Mark @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) OneToMany association
-
Remove or Change the persisted entity
-
flush the session
|