Annotation 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.
As of Spring Framework 5.3, this annotation will be inherited from an
enclosing test class by default. See
@NestedTestConfiguration
for details.
- Since:
- 5.2
- Author:
- Sam Brannen, Dmitry Semukhin
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of modes that dictate whether method-level@Sqldeclarations are merged with class-level@Sqldeclarations. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionIndicates whether method-level@Sqlannotations should be merged with class-level@Sqlannotations or override them.
-
Element Details
-
value
SqlMergeMode.MergeMode valueIndicates whether method-level@Sqlannotations should be merged with class-level@Sqlannotations or override them.
-