Skip to content

Commit

Permalink
HHH-7359 Corrected trace logging of HibernateProxy objects
Browse files Browse the repository at this point in the history
  • Loading branch information
brmeyer committed Oct 24, 2012
1 parent deaff97 commit 9968ce3
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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 );
Expand Down

0 comments on commit 9968ce3

Please sign in to comment.