| I tried, but in a test setup it worked. However, I get the same Exceptions when I try to just do Criteria.list. So it seems to be a problem using the second level cache and not in the mapping.
org.hibernate.event.internal.DefaultLoadEventListener.getFromSharedCache(DefaultLoadEventListener.java:645):
final Object ck = cache.generateCacheKey(
event.getEntityId(),
persister,
source.getFactory(),
source.getTenantIdentifier()
);
Either LoadEvent, SessionImplementor or EntityDataAccess has to be null, but I don't understand what I could have done wrong. Is there any configuration change I missed? Of course I read the migration guide, tried using JCache+the latest ehcache instead of hibernate-ehcache - but to no avail. |