package com.sifang.modules.taskdispatch.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

@Entity
@Table(name = "crm_prior_review_setting_member")
public class CrmPriorReviewSettingMember implements Serializable {
    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    private String id;

    private String reviewSettingId;

    private String groupName;

    private String employeeId;

    private String userId;

    private String flag;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getReviewSettingId() {
        return reviewSettingId;
    }

    public void setReviewSettingId(String reviewSettingId) {
        this.reviewSettingId = reviewSettingId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CrmPriorReviewSettingMember that = (CrmPriorReviewSettingMember) o;
        return Objects.equals(id, that.id) && Objects.equals(reviewSettingId, that.reviewSettingId) && Objects.equals(employeeId, that.employeeId) && Objects.equals(userId, that.userId) && Objects.equals(flag, that.flag);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, reviewSettingId, groupName, employeeId, userId, flag);
    }
}
