mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-25 23:19:56 +00:00
#1798 - Fix automatic query label set on nested secondary query when using profileLocation
This commit is contained in:
1 parent
0d175557b0
commit
21a3f322e1
4 files changed
+17
-3
No files matched your search
@@ -2,6 +2,7 @@ package org.tests.query.autotune;
|
||||
|
||||
import io.ebean.BaseTestCase;
|
||||
import io.ebean.DB;
|
||||
import io.ebean.ProfileLocation;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.tests.model.basic.Address;
|
||||
@@ -55,8 +56,12 @@ public class TestAutoTuneProfiling extends BaseTestCase {
|
||||
useLotUntuned();
|
||||
}
|
||||
|
||||
private static final ProfileLocation loc0 = ProfileLocation.create();
|
||||
|
||||
private Order findById(long id) {
|
||||
|
||||
return DB.find(Order.class)
|
||||
.setProfileLocation(loc0)
|
||||
.select("status, orderDate, shipDate")
|
||||
.setId(id)
|
||||
.setUseCache(false)
|
||||
|
||||
Reference in new issue
Block a user