@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final WorkPayment other = (WorkPayment) obj;
        if (this.payment != other.payment && (this.payment == null || !this.payment.equals(other.payment))) {
            return false;
        }
        if (this.workType != other.workType && (this.workType == null || !this.workType.equals(other.workType))) {
            return false;
        }
        return true;
    }