HHH-7359 Corrected trace logging of HibernateProxy objects
This commit is contained in:
parent
757c18bf73
commit
06463d169c
|
@ -505,6 +505,9 @@ public abstract class EntityType extends AbstractType implements AssociationType
|
||||||
throw new ClassCastException( value.getClass().getName() );
|
throw new ClassCastException( value.getClass().getName() );
|
||||||
}
|
}
|
||||||
id = ( Serializable ) value;
|
id = ( Serializable ) value;
|
||||||
|
} else if ( value instanceof HibernateProxy ) {
|
||||||
|
HibernateProxy proxy = ( HibernateProxy ) value;
|
||||||
|
id = proxy.getHibernateLazyInitializer().getIdentifier();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
id = persister.getIdentifier( value );
|
id = persister.getIdentifier( value );
|
||||||
|
|
Loading…
Reference in New Issue