[hibernate-commits] Hibernate SVN: r10864 - trunk/Hibernate3/src/org/hibernate/impl

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Nov 22 07:54:11 EST 2006


Author: steve.ebersole at jboss.com
Date: 2006-11-22 07:54:10 -0500 (Wed, 22 Nov 2006)
New Revision: 10864

Modified:
   trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.java
Log:
HHH-2259 : jta current session + auto-flush

Modified: trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.java	2006-11-22 12:53:53 UTC (rev 10863)
+++ trunk/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.java	2006-11-22 12:54:10 UTC (rev 10864)
@@ -990,6 +990,9 @@
 			return null;
 		}
 		else if ( "jta".equals( impl ) ) {
+			if ( settings.getTransactionFactory().areCallbacksLocalToHibernateTransactions() ) {
+				log.warn( "JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession()" );
+			}
 			return new JTASessionContext( this );
 		}
 		else if ( "thread".equals( impl ) ) {




More information about the hibernate-commits mailing list