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:
parent
23dfa3f264
commit
5ff99eabbf
|
@ -350,7 +350,7 @@ public abstract class EntityType extends AbstractType implements AssociationType
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ( mappedClass.isAssignableFrom( y.getClass() ) ) {
|
if ( mappedClass.isAssignableFrom( y.getClass() ) ) {
|
||||||
yid = persister.getIdentifier(x, entityMode);
|
yid = persister.getIdentifier(y, entityMode);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//JPA 2 case where @IdClass contains the id and not the associated entity
|
//JPA 2 case where @IdClass contains the id and not the associated entity
|
||||||
|
|
Loading…
Reference in New Issue