The Spring Framework

org.springframework.test.context.transaction
Annotation Type TransactionConfiguration


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
@Documented
public @interface TransactionConfiguration

TransactionConfiguration defines class-level metadata for configuring transactional tests.

Since:
2.5
Author:
Sam Brannen
See Also:
ContextConfiguration, TransactionalTestExecutionListener

Optional Element Summary
 boolean defaultRollback
          Should transactions be rolled back by default?
 String transactionManager
          The bean name of the PlatformTransactionManager that is to be used to drive transactions.
 

transactionManager

public abstract String transactionManager
The bean name of the PlatformTransactionManager that is to be used to drive transactions. This attribute is not required and only needs to be specified explicitly if the bean name of the desired PlatformTransactionManager is not "transactionManager".

Default:
"transactionManager"

defaultRollback

public abstract boolean defaultRollback
Should transactions be rolled back by default?

Default:
true

The Spring Framework

Copyright © 2002-2008 The Spring Framework.