|
From: <hib...@li...> - 2006-05-03 14:44:50
|
Author: epbernard
Date: 2006-05-03 10:44:42 -0400 (Wed, 03 May 2006)
New Revision: 9862
Modified:
trunk/HibernateExt/ejb/src/java/org/hibernate/ejb/Ejb3Configuration.java
Log:
EJB-159 RESOURCE_LOCAL is the default in JavaSE
Modified: trunk/HibernateExt/ejb/src/java/org/hibernate/ejb/Ejb3Configuration.java
===================================================================
--- trunk/HibernateExt/ejb/src/java/org/hibernate/ejb/Ejb3Configuration.java 2006-05-03 14:10:52 UTC (rev 9861)
+++ trunk/HibernateExt/ejb/src/java/org/hibernate/ejb/Ejb3Configuration.java 2006-05-03 14:44:42 UTC (rev 9862)
@@ -754,6 +754,10 @@
//override the new defaults with the user defined ones
if ( properties != null ) preparedProperties.putAll( properties );
+ if (transactionType == null) {
+ //if it has not been set, the user use a programmatic way
+ transactionType = PersistenceUnitTransactionType.RESOURCE_LOCAL;
+ }
defineTransactionType(
preparedProperties.getProperty( HibernatePersistence.TRANSACTION_TYPE ),
workingVars
|