@Target(value={TYPE,METHOD}) @Retention(value=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.
Sql
,
SqlMergeMode.MergeMode.MERGE
,
SqlMergeMode.MergeMode.OVERRIDE
Modifier and Type | Required Element and Description |
---|---|
SqlMergeMode.MergeMode |
value
Indicates whether method-level
@Sql annotations should be merged
with class-level @Sql annotations or override them. |
public abstract SqlMergeMode.MergeMode value
@Sql
annotations should be merged
with class-level @Sql
annotations or override them.