153154155156157158159160161
sub().from(cat).list(cat.name).count()); } @Test public void Count_Multiple_Sources() { QCat other = new QCat("other"); assertToString("(select count(cat, other) from Cat cat, Cat other)", sub().from(cat, other).count()); }
160161162163164165166167168
sub().from(cat, other).count()); } @Test public void Count_Multiple_Sources_Via_List() { QCat other = new QCat("other"); assertToString("(select count(cat, other) from Cat cat, Cat other)", sub().from(cat, other).list(cat, other).count()); }