package com.landtool.lanbase.modules.spcData.entity;
|
|
import java.io.Serializable;
|
import java.util.Objects;
|
//专题数据-菜单表
|
public class SpcDataMenu implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
//id
|
private Integer id;
|
//父id
|
private Integer pId;
|
//菜单名称
|
private String name;
|
//元数据id
|
private Integer metadataId;
|
//表名称
|
private String tableName;
|
//类型
|
private Integer type;
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
|
public Integer getpId() {
|
return pId;
|
}
|
|
public void setpId(Integer pId) {
|
this.pId = pId;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public Integer getMetadataId() {
|
return metadataId;
|
}
|
|
public void setMetadataId(Integer metadataId) {
|
this.metadataId = metadataId;
|
}
|
|
public String getTableName() {
|
return tableName;
|
}
|
|
public void setTableName(String tableName) {
|
this.tableName = tableName;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
public SpcDataMenu() {
|
}
|
|
|
public SpcDataMenu(Integer id, Integer pId, String name, Integer metadataId, String tableName, Integer type) {
|
this.id = id;
|
this.pId = pId;
|
this.name = name;
|
this.metadataId = metadataId;
|
this.tableName = tableName;
|
this.type = type;
|
}
|
|
@Override
|
public boolean equals(Object o) {
|
if (this == o) return true;
|
if (o == null || getClass() != o.getClass()) return false;
|
SpcDataMenu that = (SpcDataMenu) o;
|
return Objects.equals(id, that.id) &&
|
Objects.equals(pId, that.pId) &&
|
Objects.equals(name, that.name) &&
|
Objects.equals(metadataId, that.metadataId) &&
|
Objects.equals(tableName, that.tableName) &&
|
Objects.equals(type, that.type);
|
}
|
|
@Override
|
public int hashCode() {
|
return Objects.hash(id, pId, name, metadataId, tableName, type);
|
}
|
|
@Override
|
public String toString() {
|
return "SpcDataMenu{" +
|
"id=" + id +
|
", pId=" + pId +
|
", name='" + name + '\'' +
|
", metadataId=" + metadataId +
|
", tableName='" + tableName + '\'' +
|
", type=" + type +
|
'}';
|
}
|
}
|