@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (this.getClass() != obj.getClass()) {
            return false;
        }
        Department d = (Department) obj;
        if (hashCode() != d.hashCode()) {
            return false;
        }
        if (((Department) obj).getDepartmentName().equals(departmentName) && ((Department) obj).getChief().equals(chief)) {
            return true;
        }
        if (this.getDepartmentName().equals("") && (this.getChief().equals(new Employe()))){
            return false;
        }
        return true;
    }