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

Examples of com.google.appengine.datanucleus.test.jpa.BaseVersionSubclass


    assertEquals(3, hv.getVersion().longValue());
  }


  public void testVersionInheritance() {
    BaseVersionSubclass base = new BaseVersionSubclass(1, "First");
    beginTxn();
    em.persist(base);
    commitTxn();
    assertEquals(1, base.getVersion());

    beginTxn();
    base.setName("Second");
    commitTxn();
    assertEquals(2, base.getVersion());

    em.close();
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jpa.BaseVersionSubclass

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.