spring-framework / org.springframework.test.context.jdbc / SqlGroup

SqlGroup

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) @Inherited class SqlGroup

Container annotation that aggregates several Sql annotations.

Can be used natively, declaring several nested @Sql annotations. Can also be used in conjunction with Java 8's support for repeatable annotations, where @Sql can simply be declared several times on the same class or method, implicitly generating this container annotation.

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

Author
Sam Brannen

Since
4.1

See Also
Sql

Constructors

<init>

SqlGroup(vararg value: Sql)

Container annotation that aggregates several Sql annotations.

Can be used natively, declaring several nested @Sql annotations. Can also be used in conjunction with Java 8's support for repeatable annotations, where @Sql can simply be declared several times on the same class or method, implicitly generating this container annotation.

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

Properties

value

val value: Array<Sql>