ZoaAnnouncement.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*
  2. * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙,邂逅框架梦]
  3. *
  4. * 知启蒙WEB容器(zhiqim_httpd)在LGPL3.0协议下开源:https://www.zhiqim.com/gitcan/zhiqim/zhiqim_httpd.htm
  5. *
  6. * This file is part of [zhiqim_httpd].
  7. *
  8. * [zhiqim_httpd] is free software: you can redistribute
  9. * it and/or modify it under the terms of the GNU Lesser General Public License
  10. * as published by the Free Software Foundation, either version 3 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * [zhiqim_httpd] is distributed in the hope that it will
  14. * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with [zhiqim_httpd].
  20. * If not, see <http://www.gnu.org/licenses/>.
  21. */
  22. package org.zhiqim.announcement.dbo;
  23. import java.io.Serializable;
  24. import java.sql.Timestamp;
  25. import org.zhiqim.kernel.annotation.AnAlias;
  26. import org.zhiqim.kernel.json.Jsons;
  27. import org.zhiqim.orm.annotation.*;
  28. /**
  29. * 公告表 对应表《ZOA_ANNOUNCEMENT》
  30. */
  31. @AnAlias("ZoaAnnouncement")
  32. @AnTable(table="ZOA_ANNOUNCEMENT", key="ANNOUNCEMENT_ID", type="InnoDB")
  33. public class ZoaAnnouncement implements Serializable
  34. {
  35. private static final long serialVersionUID = 1L;
  36. @AnTableField(column="ANNOUNCEMENT_ID", type="long", notNull=true) private long announcementId; //1.公告编号
  37. @AnTableField(column="ANNOUNCEMENT_TITLE", type="string,60", notNull=true) private String announcementTitle; //2.公告标题
  38. @AnTableField(column="ANNOUNCEMENT_TYPE", type="byte", notNull=true) private int announcementType; //3.公告类型:1,行政公告 2,假日公告 3,会议公告
  39. @AnTableField(column="ANNOUNCEMENT_STATUS", type="int", notNull=true) private int announcementStatus; //4.公告状态:0,正常 1,已删除
  40. @AnTableField(column="ANNOUNCEMENT_CONTENT", type="string,1000", notNull=true) private String announcementContent; //5.公告内容
  41. @AnTableField(column="ANNOUNCEMENT_PUBLISHER", type="string,32", notNull=true) private String announcementPublisher; //6.公告发布人
  42. @AnTableField(column="ANNOUNCEMENT_TIME", type="datetime", notNull=true) private Timestamp announcementTime; //7.公告发布时间
  43. public String toString()
  44. {
  45. return Jsons.toString(this);
  46. }
  47. public long getAnnouncementId()
  48. {
  49. return announcementId;
  50. }
  51. public void setAnnouncementId(long announcementId)
  52. {
  53. this.announcementId = announcementId;
  54. }
  55. public String getAnnouncementTitle()
  56. {
  57. return announcementTitle;
  58. }
  59. public void setAnnouncementTitle(String announcementTitle)
  60. {
  61. this.announcementTitle = announcementTitle;
  62. }
  63. public int getAnnouncementType()
  64. {
  65. return announcementType;
  66. }
  67. public void setAnnouncementType(int announcementType)
  68. {
  69. this.announcementType = announcementType;
  70. }
  71. public int getAnnouncementStatus()
  72. {
  73. return announcementStatus;
  74. }
  75. public void setAnnouncementStatus(int announcementStatus)
  76. {
  77. this.announcementStatus = announcementStatus;
  78. }
  79. public String getAnnouncementContent()
  80. {
  81. return announcementContent;
  82. }
  83. public void setAnnouncementContent(String announcementContent)
  84. {
  85. this.announcementContent = announcementContent;
  86. }
  87. public String getAnnouncementPublisher()
  88. {
  89. return announcementPublisher;
  90. }
  91. public void setAnnouncementPublisher(String announcementPublisher)
  92. {
  93. this.announcementPublisher = announcementPublisher;
  94. }
  95. public Timestamp getAnnouncementTime()
  96. {
  97. return announcementTime;
  98. }
  99. public void setAnnouncementTime(Timestamp announcementTime)
  100. {
  101. this.announcementTime = announcementTime;
  102. }
  103. }