@Test
public void testExtend() {
DbOomQuery dbOomQuery = sql("select $C{w.*}, $C{w.user:u.*} from $T{Wizard w} inner join $T{User u} on $w.wizardId=$u.userId").query();
Wizard wizard = dbOomQuery.find(/*Wizard.class, User.class*/);
assertNotNull(wizard);
assertEquals(1, wizard.wizardId);
assertEquals(7, wizard.level);
assertEquals("Gandalf", wizard.getName());
// all in one class!
dbOomQuery = sql("select $C{w.%}, $C{u.*} from $T{Wizard w} inner join $T{User u} on $w.wizardId=$u.userId").query();
WizUser wizUser = dbOomQuery.find(WizUser.class);