| | |
| | | import com.mybatisflex.annotation.KeyType; |
| | | import com.mybatisflex.annotation.Table; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigInteger; |
| | | |
| | | /** |
| | |
| | | * @TableName ai_first_menu |
| | | */ |
| | | |
| | | public class AiFirstMenuBase { |
| | | |
| | | public class AiFirstMenuBase implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * 一级菜单编号 |
| | | */ |
| | | @Id(keyType = KeyType.Auto, value = "firstMenuId", comment = "一级菜单编号") |
| | | private BigInteger firstMenuId; |
| | | private BigInteger id; |
| | | |
| | | /** |
| | | * 一级菜单名称 |
| | |
| | | @Column(comment = "一级菜单名称") |
| | | private String firstMenuName; |
| | | |
| | | public BigInteger getFirstMenuId() { |
| | | return firstMenuId; |
| | | public BigInteger getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setFirstMenuId(BigInteger firstMenuId) { |
| | | this.firstMenuId = firstMenuId; |
| | | public void setId(BigInteger id) { |
| | | this.id = id; |
| | | } |
| | | /** |
| | | * 一级菜单名称 |
| | | */ |
| | | |
| | | public String getFirstMenuName() { |
| | | return firstMenuName; |
| | | } |
| | | |
| | | /** |
| | | * 一级菜单名称 |
| | | */ |
| | | public void setFirstMenuName(String firstMenuName) { |
| | | this.firstMenuName = firstMenuName; |
| | | } |
| | | |
| | | @Override |
| | | public boolean equals(Object that) { |
| | | if (this == that) { |
| | | return true; |
| | | } |
| | | if (that == null) { |
| | | return false; |
| | | } |
| | | if (getClass() != that.getClass()) { |
| | | return false; |
| | | } |
| | | AiFirstMenuBase other = (AiFirstMenuBase) that; |
| | | return (this.getFirstMenuId() == null ? other.getFirstMenuId() == null : this.getFirstMenuId().equals(other.getFirstMenuId())) |
| | | && (this.getFirstMenuName() == null ? other.getFirstMenuName() == null : this.getFirstMenuName().equals(other.getFirstMenuName())); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | final int prime = 31; |
| | | int result = 1; |
| | | result = prime * result + ((getFirstMenuId() == null) ? 0 : getFirstMenuId().hashCode()); |
| | | result = prime * result + ((getFirstMenuName() == null) ? 0 : getFirstMenuName().hashCode()); |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | StringBuilder sb = new StringBuilder(); |
| | | sb.append(getClass().getSimpleName()); |
| | | sb.append(" ["); |
| | | sb.append("Hash = ").append(hashCode()); |
| | | sb.append(", firstMenuId=").append(firstMenuId); |
| | | sb.append(", firstMenuName=").append(firstMenuName); |
| | | sb.append("]"); |
| | | return sb.toString(); |
| | | } |
| | | } |