From ba9c167a7c44ba2bac5f79404e73c304804ff4d3 Mon Sep 17 00:00:00 2001 From: JH <935007339@qq.com> Date: Sat, 20 Jan 2024 18:18:46 +0800 Subject: [PATCH] update content --- .../java/com/luoo/music/dao/ColumnDao.java | 14 ++++ .../main/java/com/luoo/music/pojo/Column.java | 80 +++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 luoo_music/src/main/java/com/luoo/music/dao/ColumnDao.java create mode 100644 luoo_music/src/main/java/com/luoo/music/pojo/Column.java diff --git a/luoo_music/src/main/java/com/luoo/music/dao/ColumnDao.java b/luoo_music/src/main/java/com/luoo/music/dao/ColumnDao.java new file mode 100644 index 0000000..11ee9be --- /dev/null +++ b/luoo_music/src/main/java/com/luoo/music/dao/ColumnDao.java @@ -0,0 +1,14 @@ +package com.luoo.music.dao; + +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; + +import com.luoo.music.pojo.Column; +/** + * 数据访问接口 + * @author Administrator + * + */ +public interface ColumnDao extends JpaRepository,JpaSpecificationExecutor{ + +} diff --git a/luoo_music/src/main/java/com/luoo/music/pojo/Column.java b/luoo_music/src/main/java/com/luoo/music/pojo/Column.java new file mode 100644 index 0000000..2630199 --- /dev/null +++ b/luoo_music/src/main/java/com/luoo/music/pojo/Column.java @@ -0,0 +1,80 @@ +package com.luoo.music.pojo; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +/** + * 实体类 + * @author Administrator + * + */ +@Entity +@Table(name="tb_column") +public class Column implements Serializable{ + + @Id + private String id;//ID + + + + private String name;//专栏名称 + private String summary;//专栏简介 + private String userid;//用户ID + private java.util.Date createtime;//申请日期 + private java.util.Date checktime;//审核日期 + private String state;//状态 + + + public String getId() { + return id; + } + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + + public String getSummary() { + return summary; + } + public void setSummary(String summary) { + this.summary = summary; + } + + public String getUserid() { + return userid; + } + public void setUserid(String userid) { + this.userid = userid; + } + + public java.util.Date getCreatetime() { + return createtime; + } + public void setCreatetime(java.util.Date createtime) { + this.createtime = createtime; + } + + public java.util.Date getChecktime() { + return checktime; + } + public void setChecktime(java.util.Date checktime) { + this.checktime = checktime; + } + + public String getState() { + return state; + } + public void setState(String state) { + this.state = state; + } + + + +}