[hibernate-commits] Hibernate SVN: r18410 - core/branches/Branch_3_3/core/src/main/java/org/hibernate/context.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Tue Jan 5 06:01:07 EST 2010
Author: epbernard
Date: 2010-01-05 06:01:07 -0500 (Tue, 05 Jan 2010)
New Revision: 18410
Modified:
core/branches/Branch_3_3/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java
Log:
HHH-4749 Don't block calls to getListeners on SessionImplementor when using thread scoped sessions
Modified: core/branches/Branch_3_3/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java
===================================================================
--- core/branches/Branch_3_3/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java 2010-01-05 10:53:42 UTC (rev 18409)
+++ core/branches/Branch_3_3/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java 2010-01-05 11:01:07 UTC (rev 18410)
@@ -311,7 +311,9 @@
|| "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() ) {
More information about the hibernate-commits
mailing list