From b4762fd52c639ca63b822f197340ed61509d54c2 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Wed, 4 Jul 2018 15:52:11 -0700 Subject: [PATCH] Revert "HHH-12746 : CacheKeyImplementation objects with different entityOrRoleName and same id/tenantId have the same hashCode" This reverts commit 220f41dc3bcf88128cc78ddef8b463e788fede46. --- .../org/hibernate/cache/internal/CacheKeyImplementation.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/cache/internal/CacheKeyImplementation.java b/hibernate-core/src/main/java/org/hibernate/cache/internal/CacheKeyImplementation.java index 2630754cbc..ba70417a55 100644 --- a/hibernate-core/src/main/java/org/hibernate/cache/internal/CacheKeyImplementation.java +++ b/hibernate-core/src/main/java/org/hibernate/cache/internal/CacheKeyImplementation.java @@ -55,7 +55,6 @@ final class CacheKeyImplementation implements Serializable { private int calculateHashCode(Type type, SessionFactoryImplementor factory) { int result = type.getHashCode( id, factory ); - result = 31 * result + entityOrRoleName.hashCode(); result = 31 * result + (tenantId != null ? tenantId.hashCode() : 0); return result; }