[hibernate-commits] Hibernate SVN: r11254 - branches/Branch_3_2/HibernateExt/entitymanager/src/java/org/hibernate/ejb.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Mar 7 11:50:07 EST 2007


Author: epbernard
Date: 2007-03-07 11:50:06 -0500 (Wed, 07 Mar 2007)
New Revision: 11254

Modified:
   branches/Branch_3_2/HibernateExt/entitymanager/src/java/org/hibernate/ejb/AbstractEntityManagerImpl.java
Log:
More user friendly warn when the transaction strategy has been overridden

Modified: branches/Branch_3_2/HibernateExt/entitymanager/src/java/org/hibernate/ejb/AbstractEntityManagerImpl.java
===================================================================
--- branches/Branch_3_2/HibernateExt/entitymanager/src/java/org/hibernate/ejb/AbstractEntityManagerImpl.java	2007-03-06 05:23:23 UTC (rev 11253)
+++ branches/Branch_3_2/HibernateExt/entitymanager/src/java/org/hibernate/ejb/AbstractEntityManagerImpl.java	2007-03-07 16:50:06 UTC (rev 11254)
@@ -45,6 +45,7 @@
 import org.hibernate.QueryException;
 import org.hibernate.TransientObjectException;
 import org.hibernate.StaleObjectStateException;
+import org.hibernate.cfg.Environment;
 import org.hibernate.ejb.transaction.JoinableCMTTransaction;
 import org.hibernate.ejb.util.ConfigurationHelper;
 import org.hibernate.engine.SessionFactoryImplementor;
@@ -551,7 +552,7 @@
 					);
 				}
 				else {
-					log.warn( "Cannot join transaction, not a JoinableCMTTransaction" );
+					log.warn( "Cannot join transaction: do not override " + Environment.TRANSACTION_STRATEGY );
 				}
 			}
 			catch (HibernateException he) {




More information about the hibernate-commits mailing list