Annotation Interface Rollback


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @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 Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Specify whether the annotated exception should cause a rollback or not.
  • Element Details

    • value

      boolean value
      Specify 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