HHH-12692 SessionImpl#toString - add system identity hashcode

show the instance id in addition to whether the session is open or closed (when trace is not enabled).
This commit is contained in:
Walter White 2018-06-10 07:37:47 -04:00 committed by Sanne Grinovero
parent a0633b84fe
commit 5f0024feae
1 changed files with 1 additions and 1 deletions

View File

@ -2314,7 +2314,7 @@ public final class SessionImpl
@Override
public String toString() {
StringBuilder buf = new StringBuilder( 500 )
.append( "SessionImpl(" );
.append( "SessionImpl(" ).append(System.identityHashCode(this));
if ( !isClosed() ) {
if(TRACE_ENABLED) {
buf.append( persistenceContext )