@@ -319,7 +319,7 @@ else if ( "toString".equals( methodName )
319
319
|| "hashCode" .equals ( methodName )
320
320
|| "getStatistics" .equals ( methodName )
321
321
|| "isOpen" .equals ( methodName )
322
- || "getListeners" .equals ( methodName ) //useful for HSearch in particular
322
+ || "getListeners" .equals ( methodName )
323
323
) {
324
324
// allow these to go through the the real session no matter what
325
325
}
@@ -333,15 +333,15 @@ else if ( !realSession.isOpen() ) {
333
333
else if ( !realSession .getTransaction ().isActive () ) {
334
334
// limit the methods available if no transaction is active
335
335
if ( "beginTransaction" .equals ( methodName )
336
- || "getTransaction" .equals ( methodName )
337
- || "isTransactionInProgress" .equals ( methodName )
338
- || "setFlushMode" .equals ( methodName )
339
- || "getFactory" .equals ( methodName ) //from SessionImplementor
340
- || "getSessionFactory" .equals ( methodName ) ) {
336
+ || "getTransaction" .equals ( methodName )
337
+ || "isTransactionInProgress" .equals ( methodName )
338
+ || "setFlushMode" .equals ( methodName )
339
+ || "getFactory" .equals ( methodName )
340
+ || "getSessionFactory" .equals ( methodName )
341
+ || "getTenantIdentifier" .equals ( methodName ) ) {
341
342
LOG .tracev ( "Allowing method [{0}] in non-transacted context" , methodName );
342
343
}
343
- else if ( "reconnect" .equals ( methodName )
344
- || "disconnect" .equals ( methodName ) ) {
344
+ else if ( "reconnect" .equals ( methodName ) || "disconnect" .equals ( methodName ) ) {
345
345
// allow these (deprecated) methods to pass through
346
346
}
347
347
else {
0 commit comments