package com.ankaibei.workFlow.webadmin.ankaibei.entity;

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

/**
 * @author
 * @version 1.0
 * @description:
 * @date 2022/10/13 16:13
 */
@Entity
@Table(name = "accesory_info", schema = "ankaibei", catalog = "")
public class AccesoryInfoEntity {
    private Integer accesoryId;
    private String contract;
    private String scheme;
    private String plan;
    private String submitMaterial;
    private String acceptance;
    private String projectId;

    @Id
    @Column(name = "accesory_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getAccesoryId() {
        return accesoryId;
    }

    public void setAccesoryId(int accesoryId) {
        this.accesoryId = accesoryId;
    }

    @Basic
    @Column(name = "contract")
    public String getContract() {
        return contract;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    @Basic
    @Column(name = "scheme")
    public String getScheme() {
        return scheme;
    }

    public void setScheme(String scheme) {
        this.scheme = scheme;
    }

    @Basic
    @Column(name = "plan")
    public String getPlan() {
        return plan;
    }

    public void setPlan(String plan) {
        this.plan = plan;
    }

    @Basic
    @Column(name = "submit_material")
    public String getSubmitMaterial() {
        return submitMaterial;
    }

    public void setSubmitMaterial(String submitMaterial) {
        this.submitMaterial = submitMaterial;
    }

    @Basic
    @Column(name = "acceptance")
    public String getAcceptance() {
        return acceptance;
    }

    public void setAcceptance(String acceptance) {
        this.acceptance = acceptance;
    }

    @Basic
    @Column(name = "project_id")
    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AccesoryInfoEntity that = (AccesoryInfoEntity) o;
        return accesoryId == that.accesoryId && Objects.equals(contract, that.contract) && Objects.equals(scheme, that.scheme) && Objects.equals(plan, that.plan) && Objects.equals(submitMaterial, that.submitMaterial) && Objects.equals(acceptance, that.acceptance) && Objects.equals(projectId, that.projectId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(accesoryId, contract, scheme, plan, submitMaterial, acceptance, projectId);
    }
}
