Package org.nutz.dao

Examples of org.nutz.dao.Chain.toObject()


   * Issue 93
   */
  @Test
  public void test_chain_to_object() {
    Chain c = Chain.from(Lang.map("{name:'zzh',age:30}"));
    Worker w = c.toObject(Worker.class);
    assertEquals("zzh", w.name);
    assertEquals(30, w.age);
  }

}
View Full Code Here


     * Issue 93
     */
    @Test
    public void test_chain_to_object() {
        Chain c = Chain.from(Lang.map("{name:'zzh',age:30}"));
        Worker w = c.toObject(Worker.class);
        assertEquals("zzh", w.name);
        assertEquals(30, w.age);
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.