Explicit locking method withLock() is unaccessible on query beans

This commit is contained in:
Vladimir Konkov
2021-04-05 21:45:48 +03:00
parent 7fc4a229ae
commit 6d8a1c9398
2 changed files with 3 additions and 2 deletions
@@ -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();