Talk:Java Persistence/Transactions

Nested Transactions
RE:
 * To create a nested transaction, simply pass the parent transaction's handle when you created the nested transaction's handle. For example:


 * // parent transaction
 * Transaction parentTxn = myEnv.beginTransaction(null, null);
 * // child transaction
 * Transaction childTxn = myEnv.beginTransaction(parentTxn, null);

I'm not sure what class "Transaction" is referring too? JPA does not support nested transactions...
 * James (talk) 15:55, 4 August 2010 (UTC)