tags:

views:

43

answers:

0

When I create or load an object with a simple HashMap that uses persistable objects for both keys and values and pass that object to evict(), the evict is only cascaded to the values of the Map and not to the keys (this has been checked by dumping the context of the PersistenceContext at various points). This leads to various situations with stale state exceptions and the only work around so far has been to manually evict every object in the Map's keySet. I assume there should be a way to do this simply with cascading.

see also:

https://forum.hibernate.org/viewtopic.php?f=1&t=1001846