package tech.aiflowy.ai.entity.base;
|
|
import com.mybatisflex.annotation.Column;
|
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.annotation.Table;
|
|
import java.math.BigInteger;
|
|
/**
|
* ai机器人二级菜单表
|
* @TableName ai_second_menu
|
*/
|
public class AiSecondMenuBase {
|
/**
|
* 二级菜单编号
|
*/
|
@Id(keyType = KeyType.Auto, value = "secondMenuId", comment = "二级菜单编号")
|
private BigInteger secondMenuId;
|
|
/**
|
* 一级菜单编号
|
*/
|
@Column(comment = "一级菜单编号")
|
private BigInteger firstMenuId;
|
|
/**
|
* 二级菜单名称
|
*/
|
@Column(comment = "二级菜单名称")
|
private String secondMenuName;
|
|
public BigInteger getFirstMenuId() {
|
return firstMenuId;
|
}
|
|
public void setFirstMenuId(BigInteger firstMenuId) {
|
this.firstMenuId = firstMenuId;
|
}
|
|
public BigInteger getSecondMenuId() {
|
return secondMenuId;
|
}
|
|
public void setSecondMenuId(BigInteger secondMenuId) {
|
this.secondMenuId = secondMenuId;
|
}
|
|
/**
|
* 二级菜单名称
|
*/
|
public String getSecondMenuName() {
|
return secondMenuName;
|
}
|
|
/**
|
* 二级菜单名称
|
*/
|
public void setSecondMenuName(String secondMenuName) {
|
this.secondMenuName = secondMenuName;
|
}
|
|
@Override
|
public boolean equals(Object that) {
|
if (this == that) {
|
return true;
|
}
|
if (that == null) {
|
return false;
|
}
|
if (getClass() != that.getClass()) {
|
return false;
|
}
|
AiSecondMenuBase other = (AiSecondMenuBase) that;
|
return (this.getSecondMenuId() == null ? other.getSecondMenuId() == null : this.getSecondMenuId().equals(other.getSecondMenuId()))
|
&& (this.getFirstMenuId() == null ? other.getFirstMenuId() == null : this.getFirstMenuId().equals(other.getFirstMenuId()))
|
&& (this.getSecondMenuName() == null ? other.getSecondMenuName() == null : this.getSecondMenuName().equals(other.getSecondMenuName()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getSecondMenuId() == null) ? 0 : getSecondMenuId().hashCode());
|
result = prime * result + ((getFirstMenuId() == null) ? 0 : getFirstMenuId().hashCode());
|
result = prime * result + ((getSecondMenuName() == null) ? 0 : getSecondMenuName().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", secondMenuId=").append(secondMenuId);
|
sb.append(", firstMenuId=").append(firstMenuId);
|
sb.append(", secondMenuName=").append(secondMenuName);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|