Now working with both hibernate and eclipselink
[utils] / test / toplink-essentials / src / main / java / org / wamblee / support / persistence / toplink / ToplinkJpaCustomizer.java
index 26fe6a54885740cc2a633047a5a974311579985b..f9be8e4771939607c26806e1680601e3eadde277 100644 (file)
@@ -44,6 +44,9 @@ public class ToplinkJpaCustomizer implements JpaCustomizer {
 
         // DDL generation for toplink
         aJpaProperties.put("toplink.ddl-generation", "create-tables");
+        
+        // Use JTA transaction type
+        aJpaProperties.put("javax.persistence.transactionType", "JTA");
     }
 
     @Override