runtime.getDataDomain().setMaxIdQualifierSize(101);
final SelectQuery query = new SelectQuery(Painting.class);
query.setPageSize(10);
int queriesCount = queryInterceptor.runWithQueryCounter(new UnitTestClosure() {
public void execute() {
final List<Painting> boxes = context.performQuery(query);
for (Painting box : boxes) {
box.getToArtist();
}
}
});
assertEquals(11, queriesCount);
queriesCount = queryInterceptor.runWithQueryCounter(new UnitTestClosure() {
public void execute() {
final List<Painting> boxes = context.performQuery(query);
List<Painting> tempList = new ArrayList<Painting>();
tempList.addAll(boxes);