Examples of InheritanceToManySpecific


Examples of com.alvazan.test.db.InheritanceToManySpecific

    common2.setName("wwww");
    common2.setDiff("wwww");
    common2.setNum(56);
    mgr.put(common2);
   
    InheritanceToManySpecific ent1 = new InheritanceToManySpecific();
    ent1.addSomething(common);
    ent1.addSomething(common2);
   
    mgr.put(ent1);
   
    mgr.flush();
   
    InheritanceToManySpecific result1 = mgr.find(InheritanceToManySpecific.class, ent1.getId());
    Assert.assertEquals(2, result1.getInheritance().size());
    InheritanceSub1 sub1 = result1.getInheritance().get(0);
    //read the other row in
    sub1.getName();
  }
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.