CacheKey class missing from Hibernate 5 API


Migrating from hibernate3 to hibernate5 (hibernate-core-5.1.14.Final)

I have a lodEventListener class that makes use at some point of CacheKey. Apparently this class is missing ?

Is there an equivalent class I can use or has the class been moved to a different project / jar ?

Has this been transitioned to org.hibernate.cache.internal.SimpleCacheKeysFactory ?


Take a look at the DefaultLoadEventListener class which has something like this:

final EntityDataAccess cache = persister.getCacheAccessStrategy();
final Object ck = cache.generateCacheKey(

Maybe that’s what you are looking for.