/**
 * Company Name : 中贸促信息技术有限责任公司
 * Project Name:sfzxWebsite
 * File Name:Notice.java
 * Package Name:ccpit.business.noticeManage
 * Date:2017年4月12日上午10:16:53
 * Copyright (c) 2017, dingwei@ccpit.org All Rights Reserved.
 *
*/

package org.ccpit.business.noticeManage;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.ccpit.base.user.User;
import org.hibernate.annotations.Where;

/**
 * ClassName:Notice <br/>
 * Function: TODO 通知公告信息实体类. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2017年4月12日 上午10:16:53 <br/>
 * @author   dingwei
 * @version  
 * @since    JDK 1.8.0
 * @see 	 
 */
@Entity
@Where(clause = "deleted='false'")
@Table(name = "sfzx_Notice")
public class Notice {

	public long id;
	/**
	 * 标题
	 */
	public String noticeTitle;
	/**
	 * 通知公告内容
	 */
	public String noticeContent;
	/**
	 * 类型   1 表示通知公告 | 2 表示政策法规 
	 */
	public Integer noticeType;
	/**
	 * 创建人
	 */
	public User creator;
	/**
	 * 创建时间
	 */
	public Date createTime;
	/**
	 * 修改人
	 */
	public User modifyBy;
	/**
	 * 修改时间
	 */
	public Date modifyTime;
	/**
	 * 逻辑删除
	 */
	public boolean deleted;
	/**
	 * 新闻状态 初始状态为 0
	 */
	public int infotatus;
	/**
	 * 点击量
	 */
	public int clickVolume;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getNoticeTitle() {
		return noticeTitle;
	}
	public void setNoticeTitle(String noticeTitle) {
		this.noticeTitle = noticeTitle;
	}
	@Column(columnDefinition = "text")
	public String getNoticeContent() {
		return noticeContent;
	}
	public void setNoticeContent(String noticeContent) {
		this.noticeContent = noticeContent;
	}
	@OneToOne
	public User getCreator() {
		return creator;
	}
	public void setCreator(User creator) {
		this.creator = creator;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@OneToOne
	public User getModifyBy() {
		return modifyBy;
	}
	public void setModifyBy(User modifyBy) {
		this.modifyBy = modifyBy;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public boolean isDeleted() {
		return deleted;
	}
	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
	public int getInfotatus() {
		return infotatus;
	}
	public void setInfotatus(int infotatus) {
		this.infotatus = infotatus;
	}
	public int getClickVolume() {
		return clickVolume;
	}
	public void setClickVolume(int clickVolume) {
		this.clickVolume = clickVolume;
	}
	public Integer getNoticeType() {
		return noticeType;
	}
	public void setNoticeType(Integer noticeType) {
		this.noticeType = noticeType;
	}
	
}

