Annotation Interface Rollback
If you annotate your exception with this annotation, the transactional interceptor will
use the exception's instructions to force a rollback or not.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSpecify whether the annotated exception should cause a rollback or not.
-
Element Details
-
value
boolean valueSpecify whether the annotated exception should cause a rollback or not. Defaults to true.- Returns:
- true if the annotated exception should cause a rollback or not.
- Default:
true
-