package com.uas.platform.b2b.model;

import java.io.Serializable;
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$maintenance")
public class Maintenance implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3555531151734876261L;

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

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

	/**
	 * 运维开始时间
	 */
	@Column(name = "ma_begindate")
	private Date begin;

	/**
	 * 运维结束时间
	 */
	@Column(name = "ma_enddate")
	private Date end;

	/**
	 * 维护原因
	 */
	@Column(name = "ma_reason")
	private String reason;

	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 Date getBegin() {
		return begin;
	}

	public void setBegin(Date begin) {
		this.begin = begin;
	}

	public Date getEnd() {
		return end;
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

}
