HHH-4749 Don't block calls to getListeners on SessionImplementor when using thread scoped sessions

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18408 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Emmanuel Bernard 2010-01-05 10:46:13 +00:00
parent fc66b8a964
commit dd7b01ccc8
1 changed files with 3 additions and 1 deletions

View File

@ -311,7 +311,9 @@ public class ThreadLocalSessionContext implements CurrentSessionContext {
|| "equals".equals( method.getName() ) || "equals".equals( method.getName() )
|| "hashCode".equals( method.getName() ) || "hashCode".equals( method.getName() )
|| "getStatistics".equals( method.getName() ) || "getStatistics".equals( method.getName() )
|| "isOpen".equals( method.getName() ) ) { || "isOpen".equals( method.getName() )
|| "getListeners".equals( method.getName() ) //useful for HSearch in particular
) {
// allow these to go through the the real session no matter what // allow these to go through the the real session no matter what
} }
else if ( !realSession.isOpen() ) { else if ( !realSession.isOpen() ) {