From 21aa5512f66df29c6d147d247a7c713bec4ab529 Mon Sep 17 00:00:00 2001 From: p5j9vn3t2 <2596686495@qq.com> Date: Sun, 30 Apr 2023 08:26:45 +0800 Subject: [PATCH] ADD file via upload --- src/main/java/com/entity/NotesInfo.java | 82 +++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 src/main/java/com/entity/NotesInfo.java diff --git a/src/main/java/com/entity/NotesInfo.java b/src/main/java/com/entity/NotesInfo.java new file mode 100644 index 0000000..6220852 --- /dev/null +++ b/src/main/java/com/entity/NotesInfo.java @@ -0,0 +1,82 @@ +package com.example.entity; + +import javax.persistence.*; + +@Table(name = "notes_info") +public class NotesInfo { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(name = "name") + private String name; + @Column(name = "time") + private String time; + @Column(name = "userId") + private Long userId; + @Column(name = "content") + private String content; + @Column(name = "status") + private Integer status; + @Transient + private Integer praiseCount; + @Transient + private Integer collectCount; + + 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 getUserId() { + return userId; + } + public void setUserId(Long userId) { + this.userId = userId; + } + public String getContent() { + return content; + } + public void setContent(String content) { + this.content = content; + } + + + public void setId(Long id) { + this.id = id; + } + public Long getId() { + return this.id; + } + + public Integer getPraiseCount() { + return praiseCount; + } + + public void setPraiseCount(Integer praiseCount) { + this.praiseCount = praiseCount; + } + + public Integer getCollectCount() { + return collectCount; + } + + public void setCollectCount(Integer collectCount) { + this.collectCount = collectCount; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +}