From fed066ed907814ccbb7e94f4f1d66323c7a0f317 Mon Sep 17 00:00:00 2001 From: p5j9vn3t2 <2596686495@qq.com> Date: Sun, 30 Apr 2023 08:24:06 +0800 Subject: [PATCH] ADD file via upload --- src/main/java/com/entity/CollectInfo.java | 73 +++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/main/java/com/entity/CollectInfo.java diff --git a/src/main/java/com/entity/CollectInfo.java b/src/main/java/com/entity/CollectInfo.java new file mode 100644 index 0000000..1ba65c1 --- /dev/null +++ b/src/main/java/com/entity/CollectInfo.java @@ -0,0 +1,73 @@ +package com.example.entity; + +import javax.persistence.*; + +@Table(name = "collect_info") +public class CollectInfo { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(name = "name") + private String name; + @Column(name = "time") + private String time; + @Column(name = "foodsId") + private Long foodsId; + @Column(name = "notesId") + private Long notesId; + @Column(name = "userId") + private Long userId; + private Integer level; + + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getTime() { + return time; + } + public void setTime(String time) { + this.time = time; + } + public Long getFoodsId() { + return foodsId; + } + public void setFoodsId(Long foodsId) { + this.foodsId = foodsId; + } + + + public void setId(Long id) { + this.id = id; + } + public Long getId() { + return this.id; + } + + public Long getNotesId() { + return notesId; + } + + public void setNotesId(Long notesId) { + this.notesId = notesId; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } +}