Beispiel #1
0
 public Person3 createPerson3(EntityManager em, int id) {
   Person3 p = new Person3();
   p.setFirstName("f_" + id);
   p.setLastName("l_" + id);
   MedicalHistory3 m = createMedicalHistory3(em, mId3++);
   m.setPatient(p);
   p.setMedical(m);
   em.persist(m);
   em.persist(p);
   persons3.put(p.getFirstName(), p);
   medicals3.put(m.getPatient().getFirstName(), m);
   return p;
 }
Beispiel #2
0
 public MedicalHistory3 createMedicalHistory3(EntityManager em, int id) {
   MedicalHistory3 m = new MedicalHistory3();
   m.setName("medical_" + id);
   return m;
 }