파일
ziqim/zhiqim_httpd/test/org/zhiqim/announcement/dbo/ZoaAnnouncement.java
T
2025-02-20 14:59:35 +08:00

124 라인
4.0 KiB
Java

/*
* 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙,邂逅框架梦]
*
* 知启蒙WEB容器(zhiqim_httpd)在LGPL3.0协议下开源:https://www.zhiqim.com/gitcan/zhiqim/zhiqim_httpd.htm
*
* This file is part of [zhiqim_httpd].
*
* [zhiqim_httpd] is free software: you can redistribute
* it and/or modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* [zhiqim_httpd] is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with [zhiqim_httpd].
* If not, see <http://www.gnu.org/licenses/>.
*/
package org.zhiqim.announcement.dbo;
import java.io.Serializable;
import java.sql.Timestamp;
import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;
/**
* 公告表 对应表《ZOA_ANNOUNCEMENT》
*/
@AnAlias("ZoaAnnouncement")
@AnTable(table="ZOA_ANNOUNCEMENT", key="ANNOUNCEMENT_ID", type="InnoDB")
public class ZoaAnnouncement implements Serializable
{
private static final long serialVersionUID = 1L;
@AnTableField(column="ANNOUNCEMENT_ID", type="long", notNull=true) private long announcementId; //1.公告编号
@AnTableField(column="ANNOUNCEMENT_TITLE", type="string,60", notNull=true) private String announcementTitle; //2.公告标题
@AnTableField(column="ANNOUNCEMENT_TYPE", type="byte", notNull=true) private int announcementType; //3.公告类型:1,行政公告 2,假日公告 3,会议公告
@AnTableField(column="ANNOUNCEMENT_STATUS", type="int", notNull=true) private int announcementStatus; //4.公告状态:0,正常 1,已删除
@AnTableField(column="ANNOUNCEMENT_CONTENT", type="string,1000", notNull=true) private String announcementContent; //5.公告内容
@AnTableField(column="ANNOUNCEMENT_PUBLISHER", type="string,32", notNull=true) private String announcementPublisher; //6.公告发布人
@AnTableField(column="ANNOUNCEMENT_TIME", type="datetime", notNull=true) private Timestamp announcementTime; //7.公告发布时间
public String toString()
{
return Jsons.toString(this);
}
public long getAnnouncementId()
{
return announcementId;
}
public void setAnnouncementId(long announcementId)
{
this.announcementId = announcementId;
}
public String getAnnouncementTitle()
{
return announcementTitle;
}
public void setAnnouncementTitle(String announcementTitle)
{
this.announcementTitle = announcementTitle;
}
public int getAnnouncementType()
{
return announcementType;
}
public void setAnnouncementType(int announcementType)
{
this.announcementType = announcementType;
}
public int getAnnouncementStatus()
{
return announcementStatus;
}
public void setAnnouncementStatus(int announcementStatus)
{
this.announcementStatus = announcementStatus;
}
public String getAnnouncementContent()
{
return announcementContent;
}
public void setAnnouncementContent(String announcementContent)
{
this.announcementContent = announcementContent;
}
public String getAnnouncementPublisher()
{
return announcementPublisher;
}
public void setAnnouncementPublisher(String announcementPublisher)
{
this.announcementPublisher = announcementPublisher;
}
public Timestamp getAnnouncementTime()
{
return announcementTime;
}
public void setAnnouncementTime(Timestamp announcementTime)
{
this.announcementTime = announcementTime;
}
}