Annotation Interface SqlMergeMode


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Inherited public @interface SqlMergeMode
@SqlMergeMode is used to annotate a test class or test method to configure whether method-level @Sql declarations are merged with class-level @Sql declarations.

A method-level @SqlMergeMode declaration overrides a class-level declaration.

If @SqlMergeMode is not declared on a test class or test method, SqlMergeMode.MergeMode.OVERRIDE will be used by default.

This annotation may be used as a meta-annotation to create custom composed annotations with attribute overrides.

从以下版本开始:
4.0
作者:
Sam Brannen, Dmitry Semukhin
另请参阅:
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static enum 
    Enumeration of modes that dictate whether method-level @Sql declarations are merged with class-level @Sql declarations.
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    Indicates whether method-level @Sql annotations should be merged with class-level @Sql annotations or override them.
  • 元素详细资料

    • value

      Indicates whether method-level @Sql annotations should be merged with class-level @Sql annotations or override them.