Ejemplo n.º 1
0
  public Employee removeEmployee(Employee employee) {
    getEmployees().remove(employee);
    employee.setDepartment(null);

    return employee;
  }
Ejemplo n.º 2
0
  public Employee addEmployee(Employee employee) {
    getEmployees().add(employee);
    employee.setDepartment(this);

    return employee;
  }