Hibernate 5.x allows to set a Custom CacheKeysFactory if needed but library does not allow it.
According to hibernate doc:
default (wraps identitifers in the tuple)
simple (uses identifiers as keys without any wrapping)
*fully qualified class name that implements org.hibernate.cache.spi.CacheKeysFactory
should be supported by providers but DefaultCacheKeysFactory is used all around
Hibernate 5.x allows to set a Custom CacheKeysFactory if needed but library does not allow it.
According to hibernate doc: default (wraps identitifers in the tuple) simple (uses identifiers as keys without any wrapping) *fully qualified class name that implements org.hibernate.cache.spi.CacheKeysFactory should be supported by providers but DefaultCacheKeysFactory is used all around
https://docs.jboss.org/hibernate/orm/5.0/userguide/html_single/Hibernate_User_Guide.html#caching