package com.landtool.lanbase.modules.spcData.entity; import java.io.Serializable; import java.util.Objects; //专题数据-元数据表 public class SpcMetadata implements Serializable { private static final long serialVersionUID = 1L; //id private Integer id; //元数据 private String metadata; //菜单id private Integer menuId; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public SpcMetadata(Integer id, String metadata) { this.id = id; this.metadata = metadata; } public SpcMetadata() { } public String getMetadata() { return metadata; } public void setMetadata(String metadata) { this.metadata = metadata; } public Integer getMenuId() { return menuId; } public void setMenuId(Integer menuId) { this.menuId = menuId; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((menuId == null) ? 0 : menuId.hashCode()); result = prime * result + ((metadata == null) ? 0 : metadata.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; SpcMetadata other = (SpcMetadata) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (menuId == null) { if (other.menuId != null) return false; } else if (!menuId.equals(other.menuId)) return false; if (metadata == null) { if (other.metadata != null) return false; } else if (!metadata.equals(other.metadata)) return false; return true; } @Override public String toString() { return "SpcMetadata [id=" + id + ", metadata=" + metadata + ", menuId=" + menuId + "]"; } }