TSDocument.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.jeecg.demo.entity;
  2. // default package
  3. import javax.persistence.*;
  4. import org.jeecgframework.web.system.pojo.base.TSAttachment;
  5. import org.jeecgframework.web.system.pojo.base.TSType;
  6. /**
  7. * 文档下载,新闻,法规表
  8. * @author 张代浩
  9. */
  10. @Entity
  11. @Table(name = "t_s_document")
  12. @PrimaryKeyJoinColumn(name = "id")
  13. public class TSDocument extends TSAttachment implements java.io.Serializable {
  14. private String documentTitle;//文档标题
  15. private byte[] pictureIndex;//焦点图导航
  16. private Short documentState;//状态:0未发布,1已发布
  17. private Short showHome;//是否首页显示
  18. private TSType TSType;//文档分类
  19. @ManyToOne(fetch = FetchType.LAZY)
  20. @JoinColumn(name = "typeid")
  21. public TSType getTSType() {
  22. return TSType;
  23. }
  24. public void setTSType(TSType tSType) {
  25. TSType = tSType;
  26. }
  27. @Column(name = "documenttitle", length = 100)
  28. public String getDocumentTitle() {
  29. return documentTitle;
  30. }
  31. public void setDocumentTitle(String documentTitle) {
  32. this.documentTitle = documentTitle;
  33. }
  34. @Column(name = "pictureindex",length=3000)
  35. public byte[] getPictureIndex() {
  36. return pictureIndex;
  37. }
  38. public void setPictureIndex(byte[] pictureIndex) {
  39. this.pictureIndex = pictureIndex;
  40. }
  41. @Column(name = "documentstate")
  42. public Short getDocumentState() {
  43. return documentState;
  44. }
  45. public void setDocumentState(Short documentState) {
  46. this.documentState = documentState;
  47. }
  48. @Column(name = "showhome")
  49. public Short getShowHome() {
  50. return showHome;
  51. }
  52. public void setShowHome(Short showHome) {
  53. this.showHome = showHome;
  54. }
  55. }