According to Hibernate, layered documentation :
16.3.3. Caching
Support for multi-user support in Hibernate works with Hibernate's second-level cache. The key used to cache the data encodes the tenant ID.
This basically means that instead of Hibernate using the UID of the object, it uses the identifier returned by CurrentTenantIdentifierResolver.resolveCurrentTenantIdentifier() plus the identifier of the object. This means that each object in the cache is unique to its scheme.
source share