|
@@ -0,0 +1,76 @@
|
|
|
+package com.dt.child.dao;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import java.io.Serializable;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @TableName lzy_food_content
|
|
|
+ */
|
|
|
+@TableName(value ="lzy_food_content")
|
|
|
+@Data
|
|
|
+public class LzyFoodContent implements Serializable {
|
|
|
+ /**
|
|
|
+ * 主键
|
|
|
+ */
|
|
|
+ @TableId
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 内容
|
|
|
+ */
|
|
|
+ private String foodContent;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 食物id
|
|
|
+ */
|
|
|
+ private Long foodId;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ LzyFoodContent other = (LzyFoodContent) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getFoodContent() == null ? other.getFoodContent() == null : this.getFoodContent().equals(other.getFoodContent()))
|
|
|
+ && (this.getFoodId() == null ? other.getFoodId() == null : this.getFoodId().equals(other.getFoodId()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getFoodContent() == null) ? 0 : getFoodContent().hashCode());
|
|
|
+ result = prime * result + ((getFoodId() == null) ? 0 : getFoodId().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", id=").append(id);
|
|
|
+ sb.append(", foodContent=").append(foodContent);
|
|
|
+ sb.append(", foodId=").append(foodId);
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|