Parent Directory | Revision Log | Patch
revision 619 by torben, Sun Feb 21 19:03:46 2010 UTC | revision 620 by torben, Mon Mar 1 15:33:45 2010 UTC | |
---|---|---|
# | Line 25 public class Example1 { | Line 25 public class Example1 { |
25 | printList(list); | printList(list); |
26 | ||
27 | Employee emp = dao.getEmployeeById(3); | Employee emp = dao.getEmployeeById(3); |
28 | dao.updateEmployee(emp); | Department dept = emp.getDepartment(); |
29 | System.out.println( "Department " + dept.getName() ); | |
30 | ||
31 | dept = DepartmentDAO.getDepartmentById( dept.getId() ); | |
32 | for (Employee e2 : dept.getEmplyeees()) { | |
33 | System.out.println( e2.getName() ); | |
34 | } | |
35 | ||
36 | ||
37 | /* | /* |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |