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 ?

Cachekey missing in Hibernate ORM 5.x. Migrating from 4.2.21 to 5.3.4

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.