From 5ff99eabbf5bfdeab47c305911a33ebba75b0157 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 13 Apr 2010 18:24:16 +0000 Subject: [PATCH] HHH-5104 : EntityType.isEqual() tests x equals x; should test x equals y (Thierry-Dimitri Roy) git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19227 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/type/EntityType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/hibernate/type/EntityType.java b/core/src/main/java/org/hibernate/type/EntityType.java index c97d91b14a..0be7faedc1 100644 --- a/core/src/main/java/org/hibernate/type/EntityType.java +++ b/core/src/main/java/org/hibernate/type/EntityType.java @@ -350,7 +350,7 @@ public abstract class EntityType extends AbstractType implements AssociationType } else { if ( mappedClass.isAssignableFrom( y.getClass() ) ) { - yid = persister.getIdentifier(x, entityMode); + yid = persister.getIdentifier(y, entityMode); } else { //JPA 2 case where @IdClass contains the id and not the associated entity