package com.palmnest.model.notice;

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.Table;

@Entity
@Table(name = "tb_approval")
public class ApprovalModel implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2266346759101389482L;
	private Integer id;
	private Integer orgId;
	private Integer type;
	private Integer sourceId;
	private Integer orderno;
	private Integer roleId;
	private Integer approvalSource;
	private Integer enabled;
	private Integer approvalBy;
	private String approvalUser;
	private Date approvalAt;
	private Integer approvalResult;
	private String approvalOpinion;
	
	private Integer modifier;
	private Date modifTime;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "org_id")
	public Integer getOrgId() {
		return orgId;
	}
	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	@Column(name = "source_id")
	public Integer getSourceId() {
		return sourceId;
	}
	public void setSourceId(Integer sourceId) {
		this.sourceId = sourceId;
	}
	public Integer getOrderno() {
		return orderno;
	}
	public void setOrderno(Integer orderno) {
		this.orderno = orderno;
	}
	@Column(name = "role_id")
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	@Column(name = "approval_source")
	public Integer getApprovalSource() {
		return approvalSource;
	}
	public void setApprovalSource(Integer approvalSource) {
		this.approvalSource = approvalSource;
	}
	public Integer getEnabled() {
		return enabled;
	}
	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}
	@Column(name = "approval_by")
	public Integer getApprovalBy() {
		return approvalBy;
	}
	public void setApprovalBy(Integer approvalBy) {
		this.approvalBy= approvalBy;
	}
	@Column(name = "approval_at")
	public Date getApprovalAt() {
		return approvalAt;
	}
	public void setApprovalAt(Date approvalAt) {
		this.approvalAt = approvalAt;
	}
	@Column(name = "approval_result")
	public Integer getApprovalResult() {
		return approvalResult;
	}
	public void setApprovalResult(Integer approvalResult) {
		this.approvalResult = approvalResult;
	}
	@Column(name = "approval_opinion")
	public String getApprovalOpinion() {
		return approvalOpinion;
	}
	public void setApprovalOpinion(String approvalOpinion) {
		this.approvalOpinion = approvalOpinion;
	}
	@Column(name = "approval_user")
	public String getApprovalUser() {
		return approvalUser;
	}
	public void setApprovalUser(String approvalUser) {
		this.approvalUser= approvalUser;
	}
	@Column(name = "modifier")
	public Integer getModifier() {
		return modifier;
	}
	public void setModifier(Integer modifier) {
		this.modifier = modifier;
	}
	@Column(name = "modifTime")
	public Date getModifTime() {
		return modifTime;
	}
	public void setModifTime(Date modifTime) {
		this.modifTime = modifTime;
	}
	

}
