package project.db.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * FwJobRepeat generated by hbm2java
 */
@org.hibernate.annotations.DynamicInsert
@Entity
@Table(name = "fw_job_repeat")
public class FwJobRepeat implements java.io.Serializable {

	private Long id;
	private String jobId;
	private String jobName;
	private String batParam;
	private String dispParam;
	private String interval;
	private String hour;
	private String minute;
	private String week;
	private String yearMonthDay;
	private Date insertDatetime;
	private String insertId;
	private Date updateDatetime;
	private String updateId;
	private int version;

	public FwJobRepeat() {
	}

	public FwJobRepeat(String jobId, String jobName, Date insertDatetime,
			String insertId, Date updateDatetime, String updateId, int version) {
		this.jobId = jobId;
		this.jobName = jobName;
		this.insertDatetime = insertDatetime;
		this.insertId = insertId;
		this.updateDatetime = updateDatetime;
		this.updateId = updateId;
		this.version = version;
	}

	public FwJobRepeat(String jobId, String jobName, String batParam,
			String dispParam, String interval, String hour, String minute,
			String week, String yearMonthDay, Date insertDatetime,
			String insertId, Date updateDatetime, String updateId, int version) {
		this.jobId = jobId;
		this.jobName = jobName;
		this.batParam = batParam;
		this.dispParam = dispParam;
		this.interval = interval;
		this.hour = hour;
		this.minute = minute;
		this.week = week;
		this.yearMonthDay = yearMonthDay;
		this.insertDatetime = insertDatetime;
		this.insertId = insertId;
		this.updateDatetime = updateDatetime;
		this.updateId = updateId;
		this.version = version;
	}

	@SequenceGenerator(name = "generator")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

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

	@Column(name = "job_id", nullable = false, length = 32)
	public String getJobId() {
		return this.jobId;
	}

	public void setJobId(String jobId) {
		this.jobId = jobId;
	}

	@Column(name = "job_name", nullable = false, length = 128)
	public String getJobName() {
		return this.jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	@Column(name = "bat_param", length = 512)
	public String getBatParam() {
		return this.batParam;
	}

	public void setBatParam(String batParam) {
		this.batParam = batParam;
	}

	@Column(name = "disp_param", length = 512)
	public String getDispParam() {
		return this.dispParam;
	}

	public void setDispParam(String dispParam) {
		this.dispParam = dispParam;
	}

	@Column(name = "interval", length = 8)
	public String getInterval() {
		return this.interval;
	}

	public void setInterval(String interval) {
		this.interval = interval;
	}

	@Column(name = "hour", length = 2)
	public String getHour() {
		return this.hour;
	}

	public void setHour(String hour) {
		this.hour = hour;
	}

	@Column(name = "minute", length = 2)
	public String getMinute() {
		return this.minute;
	}

	public void setMinute(String minute) {
		this.minute = minute;
	}

	@Column(name = "week", length = 1)
	public String getWeek() {
		return this.week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	@Column(name = "year_month_day", length = 8)
	public String getYearMonthDay() {
		return this.yearMonthDay;
	}

	public void setYearMonthDay(String yearMonthDay) {
		this.yearMonthDay = yearMonthDay;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "insert_datetime", nullable = false, length = 29)
	public Date getInsertDatetime() {
		return this.insertDatetime;
	}

	public void setInsertDatetime(Date insertDatetime) {
		this.insertDatetime = insertDatetime;
	}

	@Column(name = "insert_id", nullable = false, length = 32)
	public String getInsertId() {
		return this.insertId;
	}

	public void setInsertId(String insertId) {
		this.insertId = insertId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_datetime", nullable = false, length = 29)
	public Date getUpdateDatetime() {
		return this.updateDatetime;
	}

	public void setUpdateDatetime(Date updateDatetime) {
		this.updateDatetime = updateDatetime;
	}

	@Column(name = "update_id", nullable = false, length = 32)
	public String getUpdateId() {
		return this.updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	@Column(name = "version", nullable = false)
	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

}
