626364656667686970717273747576777879
} @Test public void testClientSave() { CorporateClient client = new CorporateClient(); Person p = new Person(); p.setLastName("Kowalski"); p.setFirstName("Jan"); client.addPerson(p); client.setName("nazwa klienta"); clientDAO.save(client); }
8283848586878889909192939495
public void testLoadClient() { Client c = clientDAO.findOne(3); if( c instanceof CorporateClient) { CorporateClient corpo = (CorporateClient)c; System.out.println(corpo.getName()); for(Person p : corpo.getPersons()) { System.out.println(p); } }