Examples of ChildBoolIntDiscriminator


Examples of com.google.appengine.datanucleus.test.jpa.SingleTableInheritanceJPA.ChildBoolIntDiscriminator

    Assert.assertEquals(2L, cde.getProperty("type"))
    Assert.assertEquals("ChildDateInt", cde.getProperty("parentStr"));
    Assert.assertEquals(now, ((Date)cde.getProperty("date")).getTime())
    Assert.assertEquals(3, cde.getProperties().size());
   
    ChildBoolIntDiscriminator cb = new ChildBoolIntDiscriminator();
    cb.setParentStr("ChildBoolInt");
    cb.setValue(Boolean.TRUE);
    makePersistent(cb, startEnd);
   
    String cbId = cb.getId();
    Key cbKey = KeyFactory.stringToKey(cbId);
    Entity cbe = ds.get(cbKey);
   
    Assert.assertEquals(cbKey, cbe.getKey());
    Assert.assertEquals(3L, cbe.getProperty("type"))
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.SingleTableInheritanceJPA.ChildBoolIntDiscriminator

    cd.setParentStr("A");
    cd.setValue(new Date());
    makePersistent(cd, startEnd);
    String cdId = cd.getId();

    ChildBoolIntDiscriminator cb = new ChildBoolIntDiscriminator();
    cb.setParentStr("C");
    cb.setValue(Boolean.TRUE);
    makePersistent(cb, startEnd);
    String cbId = cb.getId();
   
    ParentIntDiscriminator p = new ParentIntDiscriminator();
    p.setParentStr("B");
    makePersistent(p, startEnd);
    String pId = p.getId();
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.