mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 09:05:21 +00:00
HHH-7359 Corrected trace logging of HibernateProxy objects
This commit is contained in:
parent
757c18bf73
commit
06463d169c
@ -505,6 +505,9 @@ public String toLoggableString(Object value, SessionFactoryImplementor factory)
|
||||
throw new ClassCastException( value.getClass().getName() );
|
||||
}
|
||||
id = ( Serializable ) value;
|
||||
} else if ( value instanceof HibernateProxy ) {
|
||||
HibernateProxy proxy = ( HibernateProxy ) value;
|
||||
id = proxy.getHibernateLazyInitializer().getIdentifier();
|
||||
}
|
||||
else {
|
||||
id = persister.getIdentifier( value );
|
||||
|
Loading…
x
Reference in New Issue
Block a user