mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-23 07:51:04 +00:00
#2213 Bump agent for @Transactional(autoPersistUpdates = TxOption.ON)
This commit is contained in:
+2
-2
@@ -18,8 +18,8 @@
|
||||
<ebean-migration.version>12.4.0</ebean-migration.version>
|
||||
<ebean-test-docker.version>4.1</ebean-test-docker.version>
|
||||
<ebean-datasource.version>7.0</ebean-datasource.version>
|
||||
<ebean-agent.version>12.8.1</ebean-agent.version>
|
||||
<ebean-maven-plugin.version>12.8.1</ebean-maven-plugin.version>
|
||||
<ebean-agent.version>12.8.2</ebean-agent.version>
|
||||
<ebean-maven-plugin.version>12.8.2</ebean-maven-plugin.version>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
|
||||
+1
-1
@@ -302,7 +302,7 @@
|
||||
<plugin>
|
||||
<groupId>io.ebean</groupId>
|
||||
<artifactId>ebean-maven-plugin</artifactId>
|
||||
<version>12.8.2-SNAPSHOT</version>
|
||||
<version>12.8.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>test</id>
|
||||
|
||||
@@ -234,25 +234,25 @@ public class TestTransparentPersist extends BaseTestCase {
|
||||
DB.delete(after);
|
||||
}
|
||||
|
||||
// @Test
|
||||
// public void txn_setAutoPersistUpdates() {
|
||||
//
|
||||
// EBasicVer b0 = new EBasicVer("txn autoPersistUpdates ON");
|
||||
// b0.save();
|
||||
//
|
||||
// performUpdate(b0);
|
||||
//
|
||||
// EBasicVer after = DB.find(EBasicVer.class, b0.getId());
|
||||
// assertThat(after.getName()).isEqualTo("mutated with autoPersistUpdates ON");
|
||||
//
|
||||
// DB.delete(after);
|
||||
// }
|
||||
//
|
||||
// @Transactional(autoPersistUpdates = TxOption.ON)
|
||||
// private void performUpdate(EBasicVer b0) {
|
||||
// EBasicVer found = DB.find(EBasicVer.class, b0.getId());
|
||||
// found.setName("mutated with autoPersistUpdates ON");
|
||||
// }
|
||||
@Test
|
||||
public void txn_setAutoPersistUpdates() {
|
||||
|
||||
EBasicVer b0 = new EBasicVer("txn autoPersistUpdates ON");
|
||||
b0.save();
|
||||
|
||||
performUpdate(b0);
|
||||
|
||||
EBasicVer after = DB.find(EBasicVer.class, b0.getId());
|
||||
assertThat(after.getName()).isEqualTo("mutated with autoPersistUpdates ON");
|
||||
|
||||
DB.delete(after);
|
||||
}
|
||||
|
||||
@Transactional(autoPersistUpdates = TxOption.ON)
|
||||
private void performUpdate(EBasicVer b0) {
|
||||
EBasicVer found = DB.find(EBasicVer.class, b0.getId());
|
||||
found.setName("mutated with autoPersistUpdates ON");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void simulate_transparentPersistence_forSimpleUpdate() {
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<plugin>
|
||||
<groupId>io.ebean</groupId>
|
||||
<artifactId>ebean-maven-plugin</artifactId>
|
||||
<version>12.8.1</version>
|
||||
<version>12.8.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>test</id>
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
<plugin>
|
||||
<groupId>io.ebean</groupId>
|
||||
<artifactId>ebean-maven-plugin</artifactId>
|
||||
<version>12.8.1</version>
|
||||
<version>12.8.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>test</id>
|
||||
|
||||
Reference in New Issue
Block a user