@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final WorkPlan other = (WorkPlan) obj;
        if (this.id != other.id) {
            return false;
        }
        if (this.bid != other.bid) {
            return false;
        }
        if (this.brigade != other.brigade) {
            return false;
        }
        if ((this.timeToDo == null) ? (other.timeToDo != null) : !this.timeToDo.equals(other.timeToDo)) {
            return false;
        }
        return true;
    }