Package com.google.appengine.datanucleus.test.jpa.SingleTableInheritanceJPA

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


    Assert.assertEquals(1L, pe.getProperty("type"))
    Assert.assertEquals("ParentInt", pe.getProperty("parentStr"));
    Assert.assertEquals(2, pe.getProperties().size());
   
    long now = System.currentTimeMillis();
    ChildDateIntDiscriminator cd = new ChildDateIntDiscriminator();
    cd.setParentStr("ChildDateInt");
    cd.setValue(new Date(now));
    makePersistent(cd, startEnd);
   
    String cdId = cd.getId();
    Key cdKey = KeyFactory.stringToKey(cdId);
    Entity cde = ds.get(cdKey);
   
    Assert.assertEquals(cdKey, cde.getKey());
    Assert.assertEquals(2L, cde.getProperty("type"))
View Full Code Here


  public void testQueryIntDiscriminator_NoTxn() throws Exception {
    testQueryIntDiscriminator(NEW_EM_START_END);
  }
  @SuppressWarnings("unchecked")
  private void testQueryIntDiscriminator(StartEnd startEnd) throws Exception {
    ChildDateIntDiscriminator cd = new ChildDateIntDiscriminator();
    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);
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jpa.SingleTableInheritanceJPA.ChildDateIntDiscriminator

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.