package com.uas.platform.b2b.model;

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.SequenceGenerator;
import javax.persistence.Table;

/**
 * 系统公告
 * 
 * @author yingp
 *
 */
@Entity
@Table(name = "info$notices")
public class Notice {

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "info$notices_gen")
	@SequenceGenerator(name = "info$notices_gen", sequenceName = "info$notices_seq", allocationSize = 1)
	@Column(name = "no_id")
	private Long id;

	/**
	 * 公告发起日期
	 */
	@Column(name = "no_date")
	private Date date;

	/**
	 * 标题
	 */
	@Column(name = "no_title")
	private String title;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}
