Annotation Type Transaction


@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface Transaction
Causes the annotated method to be run in a transaction.

Nested @Transaction annotations (e.g. one method calls another method, where both methods have this annotation) are collapsed into a single transaction. If the outer method annotation specifies an isolation level, then the inner method must either specify the same level, or not specify any level.