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
This commit is contained in:
Gail Badner 2010-04-13 18:24:16 +00:00
parent 23dfa3f264
commit 5ff99eabbf
1 changed files with 1 additions and 1 deletions

View File

@ -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