Skip to content

Commit

Permalink
Docs: added JPA.setRollbackOnly() clarification from source comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hilton committed Aug 18, 2011
1 parent 4661291 commit 8345180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/manual/jpa.textile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ h2. <a name="transactions">Transaction management</a>

Play will automatically manage transactions for you. It will start a transaction automatically the first time you perform an JPA operation in the HTTP request and commit it when the HTTP response is sent. If your code throws an exception, the transaction will automatically rollback.

If you need to force transaction rollback from the application code, you can use the @JPA.setRollbackOnly()@ method.
If you need to force transaction rollback from the application code, you can use the @JPA.setRollbackOnly()@ method, which tells JPA not to commit the current transaction.

You can also use annotations to specify how transactions should be handled.

Expand Down

0 comments on commit 8345180

Please sign in to comment.