| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package com.jeecg.demo.entity;
- // default package
- import javax.persistence.*;
- import org.jeecgframework.web.system.pojo.base.TSAttachment;
- import org.jeecgframework.web.system.pojo.base.TSType;
- /**
- * 文档下载,新闻,法规表
- * @author 张代浩
- */
- @Entity
- @Table(name = "t_s_document")
- @PrimaryKeyJoinColumn(name = "id")
- public class TSDocument extends TSAttachment implements java.io.Serializable {
- private String documentTitle;//文档标题
- private byte[] pictureIndex;//焦点图导航
- private Short documentState;//状态:0未发布,1已发布
- private Short showHome;//是否首页显示
- private TSType TSType;//文档分类
-
- @ManyToOne(fetch = FetchType.LAZY)
- @JoinColumn(name = "typeid")
- public TSType getTSType() {
- return TSType;
- }
- public void setTSType(TSType tSType) {
- TSType = tSType;
- }
- @Column(name = "documenttitle", length = 100)
- public String getDocumentTitle() {
- return documentTitle;
- }
- public void setDocumentTitle(String documentTitle) {
- this.documentTitle = documentTitle;
- }
- @Column(name = "pictureindex",length=3000)
- public byte[] getPictureIndex() {
- return pictureIndex;
- }
- public void setPictureIndex(byte[] pictureIndex) {
- this.pictureIndex = pictureIndex;
- }
- @Column(name = "documentstate")
- public Short getDocumentState() {
- return documentState;
- }
- public void setDocumentState(Short documentState) {
- this.documentState = documentState;
- }
- @Column(name = "showhome")
- public Short getShowHome() {
- return showHome;
- }
- public void setShowHome(Short showHome) {
- this.showHome = showHome;
- }
- }
|