mrszj / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Make @Transactional rollback on all Exceptions? #692

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was wondering on the decision to have @Transactional commit transactions if a 
checked exception is thrown as the default case. I would think that the vast 
majority of of use cases would have the transaction rolled back on any kind of 
exception.

So shouldn't the default case be "rollback on all exceptions"? Or am I missing 
an important use case here?

Original issue reported on code.google.com by jochen.s...@gmail.com on 10 Mar 2012 at 2:45

GoogleCodeExporter commented 9 years ago

Original comment by sberlin on 20 Dec 2013 at 2:17