From 3cb4be75d0e7ae55c59a8afa31407db34860a7b2 Mon Sep 17 00:00:00 2001
From: Erik Brakkee
@@ -166,6 +168,12 @@
* });
*
*
+ *
+ * Note that in addition to this method it is also possible to directly control transactions
+ * through {@link JpaBuilder#begin()}, {@link JpaBuilder#commit(javax.persistence.EntityManager)},
+ * and {@link JpaBuilder#rollback(javax.persistence.EntityManager)}.
+ * UserTransaction
+ * JPA testing combined with JDBC and DBUnit
*
@@ -197,7 +205,18 @@
* is in fact a so-called contextual reference.
* Next, the proxy is obtained from the factory. Invoking any method on it will make sure a new
* transaction is started and a new entity manager is created for the scope of that transaction.
- *
UserTransaction
+ * It is also possible to manage JPA transaction through a UserTransaction
.
+ * This is mostly useful if you are test software that uses UserTransaction
for
+ * managing transactions, or if you want to manage multiple transactional resources.
+ * See the explanation at {@link org.wamblee.test.transactions.SimpleTransactionManager} for more details.
+ *