mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 17:15:02 +00:00
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 int getDontFlushFromFind() {
|
||||
@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…
x
Reference in New Issue
Block a user