package datasync.model;

public class PositionJavaModel {

    /**
     * 岗位编号
     */
    private String pNo;

    /**
     * 一级类别；二级类别；岗位 (最后是岗位)
     */
    private String pNames;

    /**
     * 岗位类别
     */
    private String pNameClass;

    /**
     * 岗位状态
     */
    private String status;

    /**
     * 岗位删除状态
     */
    private String deleteStatus;

    /**
     * 岗位职级名称
     */
    private String positionGradeName;

    public String getpNo() {
        return pNo;
    }

    public void setpNo(String pNo) {
        this.pNo = pNo;
    }

    public String getpNames() {
        return pNames;
    }

    public void setpNames(String pNames) {
        this.pNames = pNames;
    }

    public String getpNameClass() {
        return pNameClass;
    }

    public void setpNameClass(String pNameClass) {
        this.pNameClass = pNameClass;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(String deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public String getPositionGradeName() {
        return positionGradeName;
    }

    public void setPositionGradeName(String positionGradeName) {
        this.positionGradeName = positionGradeName;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((pNo == null) ? 0 : pNo.toLowerCase().hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        PositionJavaModel other = (PositionJavaModel) obj;
        if (pNo == null) {
            if (other.pNo != null)
                return false;
        } else if (!pNo.equalsIgnoreCase(other.pNo))
            return false;
        return true;
    }

}
