@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,ANNOTATION_TYPE})
public @interface Rollback
true
, the transaction will be rolled back;
otherwise, the transaction will be committed.
As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
value
Whether or not the transaction for the annotated method should be rolled
back after the method has completed.
|