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:
parent
fc66b8a964
commit
dd7b01ccc8
|
@ -311,7 +311,9 @@ public class ThreadLocalSessionContext implements CurrentSessionContext {
|
|||
|| "equals".equals( method.getName() )
|
||||
|| "hashCode".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
|
||||
}
|
||||
else if ( !realSession.isOpen() ) {
|
||||
|
|
Loading…
Reference in New Issue