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