Package jodd.db.oom.tst

Examples of jodd.db.oom.tst.Wizard


  @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);
View Full Code Here

TOP

Related Classes of jodd.db.oom.tst.Wizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.