Explicit locking method withLock() is unaccessible on query beans

This commit is contained in:
Vladimir Konkov committed 2021-04-05 21:45:48 +03:00
1 parent 7fc4a229ae
commit 6d8a1c9398
2 files changed
+3 -2

No files matched your search

@@ -71,6 +71,7 @@ public class QCustomerTest {
// not found using other transaction
final Customer foundNot = new QCustomer()
.name.eq("explicitTransaction")
.withLock(Query.LockType.SHARE)
.findOne();
assertThat(foundNot).isNull();