((Employee)employee.getHradvisor()).removeAdvisee(employee);
}
if (employee.getReviewedProjects() != null) {
for (Iterator it=employee.getReviewedProjects().iterator();
it.hasNext(); ) {
Project other = (Project) it.next();
other.removeReviewer(employee);
}
}
if (employee.getProjects() != null) {
for (Iterator it=employee.getProjects().iterator();
it.hasNext(); ) {
Project other = (Project) it.next();
other.removeMember(employee);
}
}
if (employee.getTeam() != null) {
for (Iterator it=employee.getTeam().iterator(); it.hasNext(); ) {
Employee other = (Employee) it.next();
other.setManager(null);
}
}
if (employee.getHradvisees() != null) {
for (Iterator it=employee.getHradvisees().iterator(); it.hasNext(); ) {
Employee other = (Employee) it.next();
other.setHradvisor(employee);
}
}
}
// make the instance dirty.