Spring:Datenbanken: Unterschied zwischen den Versionen

Aus Alexander's Wiki
(Die Seite wurde neu angelegt: „== Set Up or Tear Down Outside of a Transaction == You can annotate a <code>public void</code> method with <code>@BeforeTransaction</code> or <code>@AfterTrans…“)
(kein Unterschied)

Version vom 22. November 2021, 10:58 Uhr

Set Up or Tear Down Outside of a Transaction

You can annotate a public void method with @BeforeTransaction or @AfterTransaction. This indicates to Spring that this method should be run before or after a test method is run within a transaction.