Comment by [email protected]:
Personally, I think the @Transactional default behavior is not very
sensible. A more sensible default would be to rollback on any type of
exception. If you want to do different then you can override.
To throw an exception but to continue with the transaction.commit() seems
like a way of return something from a method, via an exception. Wouldn't it
be better to return it from the method as part of its return type?
For more information:
http://code.google.com/p/google-guice/wiki/Transactions
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.