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; + } + +}