ZoaAnnouncementReader.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 org.zhiqim.kernel.annotation.AnAlias;
  25. import org.zhiqim.kernel.json.Jsons;
  26. import org.zhiqim.orm.annotation.*;
  27. /**
  28. * 公告阅读表 对应表《ZOA_ANNOUNCEMENT_READER》
  29. */
  30. @AnAlias("ZoaAnnouncementReader")
  31. @AnTable(table="ZOA_ANNOUNCEMENT_READER", key="ANNOUNCEMENT_ID,OPERATOR_CODE", type="InnoDB")
  32. public class ZoaAnnouncementReader implements Serializable
  33. {
  34. private static final long serialVersionUID = 1L;
  35. @AnTableField(column="OPERATOR_CODE", type="string,32", notNull=true) private String operatorCode; //1.公告阅读操作员
  36. @AnTableField(column="ANNOUNCEMENT_ID", type="long", notNull=true) private long announcementId; //2.公告编号
  37. public String toString()
  38. {
  39. return Jsons.toString(this);
  40. }
  41. public String getOperatorCode()
  42. {
  43. return operatorCode;
  44. }
  45. public void setOperatorCode(String operatorCode)
  46. {
  47. this.operatorCode = operatorCode;
  48. }
  49. public long getAnnouncementId()
  50. {
  51. return announcementId;
  52. }
  53. public void setAnnouncementId(long announcementId)
  54. {
  55. this.announcementId = announcementId;
  56. }
  57. }