示例#1
0
 public Dependent1 createDependent1(EntityManager em, int id, Employee1 e) {
   Dependent1 d = new Dependent1();
   DependentId1 did = new DependentId1();
   did.setName("dep_" + id);
   d.setId(did);
   d.setEmp(e);
   deps1.put(did.getName(), d);
   return d;
 }
示例#2
0
 public void assertDependent1(Dependent1 d) {
   DependentId1 id = d.getId();
   Dependent1 d0 = deps1.get(id.getName());
   if (d0.id.empPK == 0) d0.id.empPK = d0.emp.getEmpId();
   assertEquals(d0, d);
 }