mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2113 - Refactor rename Query.LockType enum names
This commit is contained in:
1 parent
9064e96b90
commit
838af0478e
5 files changed
+36
-36
No files matched your search
@@ -15,7 +15,7 @@ import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import static io.ebean.Query.LockType.NoKeyUpdate;
|
||||
import static io.ebean.Query.LockType.NO_KEY_UPDATE;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class TestQueryForUpdatePostgresLock extends BaseTestCase {
|
||||
@@ -55,7 +55,7 @@ public class TestQueryForUpdatePostgresLock extends BaseTestCase {
|
||||
private void lockArticle(Integer id) {
|
||||
timePreLock = System.currentTimeMillis();
|
||||
log.info("lock start");
|
||||
DB.find(Article.class).setId(id).forUpdate(NoKeyUpdate).findOne();
|
||||
DB.find(Article.class).setId(id).forUpdate(NO_KEY_UPDATE).findOne();
|
||||
sleep(1000);
|
||||
timePostLock = System.currentTimeMillis();
|
||||
log.info("lock done");
|
||||
|
||||
Reference in new issue
Block a user