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:
parent
a0633b84fe
commit
5f0024feae
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue