employee.setManager((Manager) sourceData);
((Manager) sourceData).getEmployees().add(employee);
}
} else if (ENTITYSET_1_2.equals(targetEntitySet.getName())) {
final Team team = (Team) readData(targetEntitySet, targetKeys);
if (((Employee) sourceData).getTeam() != null) {
((Employee) sourceData).getTeam().getEmployees().remove(sourceData);
}
((Employee) sourceData).setTeam(team);
team.getEmployees().add((Employee) sourceData);
} else if (ENTITYSET_1_3.equals(targetEntitySet.getName())) {
final Room room = (Room) readData(targetEntitySet, targetKeys);
if (ENTITYSET_1_1.equals(sourceEntitySet.getName())) {
if (((Employee) sourceData).getRoom() != null) {