From 1279fcc7290c9345a779d494d3a28b1d2fd6b58e Mon Sep 17 00:00:00 2001 From: p5j9vn3t2 <2596686495@qq.com> Date: Sun, 30 Apr 2023 08:24:44 +0800 Subject: [PATCH] ADD file via upload --- .../java/com/entity/FoodsMaterialInfo.java | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 src/main/java/com/entity/FoodsMaterialInfo.java diff --git a/src/main/java/com/entity/FoodsMaterialInfo.java b/src/main/java/com/entity/FoodsMaterialInfo.java new file mode 100644 index 0000000..f5bc26a --- /dev/null +++ b/src/main/java/com/entity/FoodsMaterialInfo.java @@ -0,0 +1,77 @@ +package com.example.entity; + +import javax.persistence.*; + +@Table(name = "foods_material_info") +public class FoodsMaterialInfo { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + @Column(name = "name") + private String name; + @Column(name = "description") + private String description; + @Column(name = "fileName") + private String fileName; + @Column(name = "fileId") + private Long fileId; + @Column(name = "userName") + private String userName; + @Column(name = "level") + private Integer level; + @Column(name = "uploadUserId") + private Long uploadUserId; + + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getDescription() { + return description; + } + public void setDescription(String description) { + this.description = description; + } + public String getFileName() { + return fileName; + } + public void setFileName(String fileName) { + this.fileName = fileName; + } + public Long getFileId() { + return fileId; + } + public void setFileId(Long fileId) { + this.fileId = fileId; + } + public String getUserName() { + return userName; + } + public void setUserName(String userName) { + this.userName = userName; + } + public Integer getLevel() { + return level; + } + public void setLevel(Integer level) { + this.level = level; + } + public Long getUploadUserId() { + return uploadUserId; + } + public void setUploadUserId(Long uploadUserId) { + this.uploadUserId = uploadUserId; + } + + + public void setId(Long id) { + this.id = id; + } + public Long getId() { + return this.id; + } + +}