mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#3125 Add query.usingMaster() for query beans
This commit is contained in:
@@ -276,8 +276,15 @@ public class QCustomerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void usingTransaction() {
|
||||
public void usingMaster() {
|
||||
new QCustomer()
|
||||
.registered.isNull()
|
||||
.usingMaster()
|
||||
.findList();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void usingTransaction() {
|
||||
try (Transaction transaction = DB.getDefault().createTransaction()) {
|
||||
|
||||
new QCustomer()
|
||||
|
||||
Reference in New Issue
Block a user