Esempio n. 1
0
 public void setUp() throws Exception {
   super.setUp(
       DROP_TABLES,
       Dependent1.class,
       Employee.class,
       Employee1.class,
       DependentId1.class,
       Dependent2.class,
       Employee2.class,
       DependentId2.class,
       EmployeeId2.class,
       MedicalHistory1.class,
       Person1.class,
       PersonId1.class,
       MedicalHistory2.class,
       Person2.class,
       Person3.class,
       MedicalHistory3.class,
       Person4.class,
       PersonId4.class,
       MedicalHistory4.class,
       Dependent3.class,
       Employee3.class,
       DependentId3.class,
       Parent3.class,
       Dependent4.class,
       Employee4.class,
       PhoneNumber.class,
       BeneContact.class,
       BeneContactId.class,
       Beneficiary.class,
       Dependent5.class,
       Employee5.class,
       EmployeeId5.class);
 }
 public void setUp() {
   super.setUp(
       CLEAR_TABLES,
       ChildChildClass.class,
       ChildClass.class,
       GrandChildClass.class,
       ParentClass.class,
       "openjpa.BrokerImpl",
       "EvictFromDataCache=true");
 }
Esempio n. 3
0
  public void setUp() {
    super.setUp(CLEAR_TABLES, Entity1.class, Entity2.class);

    em = emf.createEntityManager();
    em.getTransaction().begin();
    em.persist(new Entity1(1, CONST_NAME, CONST_INT));
    em.persist(new Entity1(2, CONST_NAME + " Changed", CONST_INT + 1));
    em.persist(new Entity1(3, CONST_NAME + " Changed 2", CONST_INT + 2));
    em.getTransaction().commit();
    em.getTransaction().begin();
  }
 public void tearDown() throws Exception {
   super.tearDown();
 }
 public void setUp() throws Exception {
   super.setUp(CLEAR_TABLES, Osoba.class, Projekt.class);
   createData();
 }