|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface TransactionConfiguration
TransactionConfiguration defines class-level metadata for configuring transactional tests.
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. |
public abstract String transactionManager
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".
NOTE: The XML <tx:annotation-driven>
element
also refers to a bean named "transactionManager" by default. If you are
using both features in combination, make sure to point to the same
transaction manager bean - here in @TransactionConfiguration
and
also in <tx:annotation-driven transaction-manager="...">
.
public abstract boolean defaultRollback
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |