X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=test%2Fenterprise%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Ftest%2Fpersistence%2FJpaBuilder.java;h=48556cfafcecf1f55690db0ff6b23a000fa788d2;hb=83898516d61bfcd1f4e3a3ea79bb56f3877f4900;hp=223971c6cdfec69eec48daf8e224f452b2f61663;hpb=a1ab1a2e44c95cc10ad4c4d15420b49e3744d93b;p=utils diff --git a/test/enterprise/src/main/java/org/wamblee/test/persistence/JpaBuilder.java b/test/enterprise/src/main/java/org/wamblee/test/persistence/JpaBuilder.java index 223971c6..48556cfa 100644 --- a/test/enterprise/src/main/java/org/wamblee/test/persistence/JpaBuilder.java +++ b/test/enterprise/src/main/java/org/wamblee/test/persistence/JpaBuilder.java @@ -153,7 +153,7 @@ public class JpaBuilder implements TransactionResource { * * This method requires the transaction to succeed. Otherwise the test will * fail. See {@link #execute(JpaUnitOfWork, TransactionResultCallback)} and - * {@link RequireTransactionStatus} for more possibilities. + * {@link RequireTransactionStatus} for more possibilities. * * @param aWork * Work to execute. @@ -161,9 +161,10 @@ public class JpaBuilder implements TransactionResource { * @return The return value of the execute method of the unit of work. */ public T execute(JpaUnitOfWork aWork) throws Exception { - return execute(aWork, new RequireTransactionStatus(TransactionResult.COMMIT)); + return execute(aWork, new RequireTransactionStatus( + TransactionResult.COMMIT)); } - + /** * Executes a unit of work. This creates an entitymanager and runs the * {@link JpaUnitOfWork#execute(EntityManager)} within a transaction,